1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-12 19:18:44 +02:00
FFmpeg/tests/ref/fate/spdif-mp2-remux

50 lines
2.6 KiB
Plaintext
Raw Normal View History

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-11 18:34:47 +02:00
1ca2b4cb48fd0f14b8a53d9330152d33 *tests/data/fate/spdif-mp2-remux.spdif
193536 tests/data/fate/spdif-mp2-remux.spdif
#tb 0: 1/90000
#media_type 0: audio
#codec_id 0: mp3
#sample_rate 0: 48000
#channel_layout_name 0: stereo
0, 0, 0, 2160, 1152, 0x6f926334
0, 2160, 2160, 2160, 1152, 0xa1ca68b3
0, 4320, 4320, 2160, 1152, 0xefa54d9e
0, 6480, 6480, 2160, 1152, 0xd224482c
0, 8640, 8640, 2160, 1152, 0xa1003b3d
0, 10800, 10800, 2160, 1152, 0x196d2d8d
0, 12960, 12960, 2160, 1152, 0x76616814
0, 15120, 15120, 2160, 1152, 0x7de26bc5
0, 17280, 17280, 2160, 1152, 0xaf093a77
0, 19440, 19440, 2160, 1152, 0xa128456e
0, 21600, 21600, 2160, 1152, 0xb4152c91
0, 23760, 23760, 2160, 1152, 0xe14e51c0
0, 25920, 25920, 2160, 1152, 0x9ec060bb
0, 28080, 28080, 2160, 1152, 0x8fc34ee7
0, 30240, 30240, 2160, 1152, 0xa6194f4e
0, 32400, 32400, 2160, 1152, 0x7612307a
0, 34560, 34560, 2160, 1152, 0x2ad2523f
0, 36720, 36720, 2160, 1152, 0xd7686d66
0, 38880, 38880, 2160, 1152, 0x47af67e7
0, 41040, 41040, 2160, 1152, 0x25a357d4
0, 43200, 43200, 2160, 1152, 0x94a66533
0, 45360, 45360, 2160, 1152, 0xcd646915
0, 47520, 47520, 2160, 1152, 0xc3614dc2
0, 49680, 49680, 2160, 1152, 0x17da5f3e
0, 51840, 51840, 2160, 1152, 0x11194069
0, 54000, 54000, 2160, 1152, 0x29af3e5b
0, 56160, 56160, 2160, 1152, 0x37c83b1b
0, 58320, 58320, 2160, 1152, 0xaba73200
0, 60480, 60480, 2160, 1152, 0x743a482d
0, 62640, 62640, 2160, 1152, 0xab435176
0, 64800, 64800, 2160, 1152, 0x3f363c6a
0, 66960, 66960, 2160, 1152, 0xbbaf35ad
0, 69120, 69120, 2160, 1152, 0xc7783d29
0, 71280, 71280, 2160, 1152, 0x28963a4e
0, 73440, 73440, 2160, 1152, 0xdda343dd
0, 75600, 75600, 2160, 1152, 0x1e4857e3
0, 77760, 77760, 2160, 1152, 0x0bfd43bf
0, 79920, 79920, 2160, 1152, 0x1bee45f5
0, 82080, 82080, 2160, 1152, 0xf816371b
0, 84240, 84240, 2160, 1152, 0x70eb4605
0, 86400, 86400, 2160, 1152, 0x3dea4608
0, 88560, 88560, 2160, 1152, 0x709d5317