ffmpeg/tests/ref/fate/spdif-ac3-remux
Andreas Rheinhardt 9ad3db3ad9 fate/spdif: Add spdif tests
These tests test both the demuxer as well as the muxer
wherever possible. It is not always possible due to the fact
that the muxer supports more codecs than the demuxer.

The spdif demuxer does currently not set the need_parsing flag.
If one were to set this to AVSTREAM_PARSE_FULL, the test results
would change as follows:
- For spdif-aac-remux, the packets are currently padded to 16bits,
i.e. if the actual packet size is odd, there is a padding byte.
The parser splits this byte away into a one byte packet of its own.
Insanely, these one byte packets get the same duration as normal
packets, i.e. timing is ruined.
- The DCA-remux tests get proper duration/timestamps.
- In the spdif-mp2-remux test the demuxer marks the stream as
being MP2; the parser sets it to MP3 and this triggers
the "Codec change in IEC 61937" codepath; this test therefore
returns only two packets with the parser.
- For spdif-mp3-remux some bytes end up in different packets:
Some input packets of this file have an odd length (417B instead
of 418B like all the other packets) and are padded to 418B.
Without a parser, all returned packets from the spdif-demuxer
are 418B. With a parser, the packets that were originally 417B
are 417B again, but the padding byte has not been discarded,
but added to the next packet which is now 419B.
This fixes "Multiple frames in a packet" warning and avoids
an "Invalid data found when processing input" error when decoding.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-09-13 14:50:01 +02:00

64 lines
3.4 KiB
Plaintext

d2c51a1156406cd8895122998efa66ec *tests/data/fate/spdif-ac3-remux.spdif
344064 tests/data/fate/spdif-ac3-remux.spdif
#tb 0: 1/90000
#media_type 0: audio
#codec_id 0: ac3
#sample_rate 0: 48000
#channel_layout_name 0: 5.1(side)
0, 0, 0, 2880, 1792, 0xc6250823
0, 2880, 2880, 2880, 1792, 0xb76a1098
0, 5760, 5760, 2880, 1792, 0xfe6e1038
0, 8640, 8640, 2880, 1792, 0x102f060a
0, 11520, 11520, 2880, 1792, 0xfd881629
0, 14400, 14400, 2880, 1792, 0x950505f6
0, 17280, 17280, 2880, 1792, 0x3d9a143f
0, 20160, 20160, 2880, 1792, 0xa2261142
0, 23040, 23040, 2880, 1792, 0x9cc9053d
0, 25920, 25920, 2880, 1792, 0xaaeb109b
0, 28800, 28800, 2880, 1792, 0xd36308f6
0, 31680, 31680, 2880, 1792, 0xb08a125d
0, 34560, 34560, 2880, 1792, 0xd8d31026
0, 37440, 37440, 2880, 1792, 0x9b87a34d
0, 40320, 40320, 2880, 1792, 0x51ed77f6
0, 43200, 43200, 2880, 1792, 0x29c16ed2
0, 46080, 46080, 2880, 1792, 0x8c9662d6
0, 48960, 48960, 2880, 1792, 0x32c85025
0, 51840, 51840, 2880, 1792, 0x32914d88
0, 54720, 54720, 2880, 1792, 0x84b9382b
0, 57600, 57600, 2880, 1792, 0x003e4890
0, 60480, 60480, 2880, 1792, 0x70325b4e
0, 63360, 63360, 2880, 1792, 0x80e04a58
0, 66240, 66240, 2880, 1792, 0x2c46323a
0, 69120, 69120, 2880, 1792, 0x7be152a5
0, 72000, 72000, 2880, 1792, 0x08615466
0, 74880, 74880, 2880, 1792, 0x55364eaf
0, 77760, 77760, 2880, 1792, 0x46595d56
0, 80640, 80640, 2880, 1792, 0xdf476ace
0, 83520, 83520, 2880, 1792, 0x9ff767dc
0, 86400, 86400, 2880, 1792, 0xb4d450a7
0, 89280, 89280, 2880, 1792, 0x032c7506
0, 92160, 92160, 2880, 1792, 0x50e35426
0, 95040, 95040, 2880, 1792, 0xe5575597
0, 97920, 97920, 2880, 1792, 0x86565611
0, 100800, 100800, 2880, 1792, 0xed6f54aa
0, 103680, 103680, 2880, 1792, 0x4cee4aab
0, 106560, 106560, 2880, 1792, 0x8aa33ac7
0, 109440, 109440, 2880, 1792, 0xb665442c
0, 112320, 112320, 2880, 1792, 0x9a4b647d
0, 115200, 115200, 2880, 1792, 0xf40d582d
0, 118080, 118080, 2880, 1792, 0xf22e5d98
0, 120960, 120960, 2880, 1792, 0x2f7745be
0, 123840, 123840, 2880, 1792, 0xa918561a
0, 126720, 126720, 2880, 1792, 0x59cc56fb
0, 129600, 129600, 2880, 1792, 0xaefe5dca
0, 132480, 132480, 2880, 1792, 0x80ba657d
0, 135360, 135360, 2880, 1792, 0x09137032
0, 138240, 138240, 2880, 1792, 0xf51b5d34
0, 141120, 141120, 2880, 1792, 0x1d695fb1
0, 144000, 144000, 2880, 1792, 0xf6f56509
0, 146880, 146880, 2880, 1792, 0xd1f658d5
0, 149760, 149760, 2880, 1792, 0xb8614f64
0, 152640, 152640, 2880, 1792, 0x8dd55743
0, 155520, 155520, 2880, 1792, 0xcb1f50df
0, 158400, 158400, 2880, 1440, 0xa129aa95