Mattias Wadman
c93301fc70
raw,bits,bytes: Replace raw format with bits and bytes format that decode to a binary
...
raw format was a hack to skip decoding to be able to get a binary using tobyte etc.
Now you can do fq -d bytes ... instead of fq -d raw 'tobytes | ...'
2022-11-20 19:51:12 +01:00
Mattias Wadman
0cf46e1196
wav,avi,avc_au: Add avi decoder and refactor wav decoder
...
avi and wav now share common riff decode code
avc_au decoder can now handle annexb format
2022-11-19 13:11:27 +01:00
Mattias Wadman
c3a0686c9e
mp3_frame_tags: Refactor and rename xing format to mp3_frame_tags
...
Make more sense to use a more general name when there is both info and xing
and possibly vbri in the future. Also both xing and info seems to have extension
fields
Remove some old tests that are not really needed anymore.
2022-11-16 17:32:03 +01:00
Mattias Wadman
2de875393a
mp3_frame: Fix issue calc frame size for some configs
...
Seems have to use the 144000*bitrate/sameplrate to get correct size or
one would miss one byte (odd size rounded to even?)
2022-11-16 15:55:10 +01:00
Mattias Wadman
f66e224452
id3v2: In the wild COMM and TXXX frame might not have a null terminator
2022-10-20 22:07:37 +02:00
Mattias Wadman
fb2a2b949c
flac,fuzz: Fatal error on negative partition sample count
2022-10-18 13:40:48 +02:00
Mattias Wadman
2606916753
yaml,fuzz: gojq.Normalize value to fix type panic
2022-10-11 19:22:49 +02:00
Mattias Wadman
7859be1e5d
flac_frame: Properly decode zero escape sample size
2022-10-11 17:05:19 +02:00
Mattias Wadman
3a578152f2
Merge pull request #459 from wader/decode-s-must-least-1bit
...
decode,fuzz: Signed integer (S) read require at least one bit
2022-10-11 12:41:28 +02:00
Mattias Wadman
bafd1f564e
decode,fuzz: Signed integer (S) read require at least one bit
...
Otherwise there is no sign bit and it will panic on shifting.
Maybe should require 2? now -0 and +1 hmm
2022-10-11 12:12:28 +02:00
Mattias Wadman
cef4245b49
fuzz: make fuzz GROUP=mp4 to fuzz one group
2022-10-10 21:07:10 +02:00
Mattias Wadman
e9aa4837e9
Merge pull request #454 from dgmcdona/reference_size_bug_fix
...
fixes reference calculation to use reference size from trailer
2022-10-09 21:48:12 +02:00
David McDonald
b09d61162b
makes dictionary key type checking more sensible
2022-10-09 13:34:00 -05:00
Mattias Wadman
2a86d323b4
doc,rtmp,pcap,markdown: Add more examples
2022-10-09 19:18:14 +02:00
Mattias Wadman
e748079e87
matroska: Update spec and regenerate
...
The new type "TargetType" used in labels is bit confusing, should be handled differently?
2022-10-08 15:45:46 +02:00
David McDonald
ac86f9318b
fixes signed integer parsing
2022-10-07 21:33:26 -05:00
David McDonald
2b3adbe8d6
renames test data file
2022-10-07 18:08:20 -05:00
David McDonald
4ee7dd8a38
changes Errorf to Fatalf on infinite loops
2022-10-07 18:04:07 -05:00
David McDonald
4d8dd5c5e3
adds check for recursion in decodeReference, adds test to verify fix
2022-10-07 15:07:05 -05:00
David McDonald
413d425079
gofmt
2022-10-07 13:16:17 -05:00
David McDonald
fb1a91ac3c
drop indented else block per lint
2022-10-07 13:15:22 -05:00
David McDonald
236fbc17b5
fixes reference calculation to use reference size from trailer
2022-10-07 13:07:51 -05:00
David McDonald
4dd594c14e
fixes bad path in test output
2022-10-07 00:50:48 -05:00
David McDonald
46b7ab3268
adds test to verify fix
2022-10-07 00:23:25 -05:00
David McDonald
b08e25ce78
removes unnecessary cast
2022-10-06 23:49:15 -05:00
David McDonald
b7c4576c5e
adds necessary cast
2022-10-06 23:47:10 -05:00
David McDonald
f9a1d3f444
fixes calculation of floating point lengths
2022-10-06 23:23:04 -05:00
Mattias Wadman
16b01211b1
bplist: Make torepr convert to values
2022-10-04 18:12:49 +02:00
Mattias Wadman
cb3dc80252
decode,tar: Add scalar description and Try* helpers
...
Rework time helpers to use new functions
Fix panic in tar decoder where sym value might be missing
Still not very happy about the API but it's getting better.
2022-10-04 17:18:51 +02:00
Mattias Wadman
421b2b3071
bplist: Fix unknown field for singletons and add torepr tests
2022-10-04 14:30:54 +02:00
Mattias Wadman
09ea08f3aa
Merge pull request #427 from dgmcdona/bplist
...
Adds support for Apple Binary Plist, version 00
2022-10-04 14:25:53 +02:00
Mattias Wadman
20a15372ba
mp4: Fix data_format typo
2022-10-02 23:31:38 +02:00
Mattias Wadman
0fdc03a4f1
doc: Fix some incorrect example prompts
2022-09-27 13:42:31 +02:00
Mattias Wadman
d6316d5cbf
wav: Decode smpl chunk
2022-09-26 11:28:02 +02:00
David McDonald
1e47f4f2f7
updates tests post integer-bug fix
2022-09-25 00:48:43 -05:00
David McDonald
ebae938d0e
Fixes bug in integer parsing
2022-09-25 00:43:21 -05:00
David McDonald
bcccde2358
Fixes and embeds documentation
2022-09-24 12:57:11 -05:00
David McDonald
3d8ea1deac
updates torepr for data type
2022-09-23 22:12:30 -05:00
David McDonald
12836abe26
updates fqtest
2022-09-23 21:16:28 -05:00
David McDonald
5f61994087
adds function for decoding fixed sized arrays
2022-09-23 20:50:41 -05:00
David McDonald
3deceeebd6
fixes from PR comments
2022-09-23 20:23:29 -05:00
David McDonald
3198602d25
removed unused return type
2022-09-23 20:23:29 -05:00
David McDonald
369f4016c1
removed unneccessary type conversions
2022-09-23 20:23:29 -05:00
David McDonald
6b04f2de1c
Documentation cleanup
2022-09-23 20:23:29 -05:00
David McDonald
368d183b73
Size check on nBits to save memory
2022-09-23 20:23:29 -05:00
David McDonald
a77cec921f
Added documentation and tests, fixed bad date parsing
2022-09-23 20:23:23 -05:00
David McDonald
5711f29084
Code fixes from PR, still need to add tests and testdata
2022-09-23 20:21:32 -05:00
David McDonald
d784db69bc
Adds support for Apple Binary Plist, version 00
2022-09-23 20:21:32 -05:00
Mattias Wadman
a7a101ca67
doc,help: Nicer format help and move help tests into each format
...
Also add authors to avro and macho decoders
Generated with:
for i in $(go run . -r -n '_registry | [([([.files[][].name | split(".")[0]] | unique[]), (.formats[].name)] | count[] | select(.[1] == 2)[0]), (.formats[] | select(.decode_in_arg).name)] | unique[]'); do DIR=$(dirname $(find format -name $i.go)); echo "$ fq -h $i" > "$DIR/testdata/help_$i.fqtest" ; done
2022-09-22 23:07:58 +02:00
Mattias Wadman
725ab1b17b
doc,html,xml: Add more documentation and examples
2022-09-20 17:35:27 +02:00