1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00
FFmpeg/tests/ref/fate/spdif-dca-core-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

15 lines
641 B
Plaintext

a4e739ebe07c75dd569156d5038696a9 *tests/data/fate/spdif-dca-core-remux.spdif
14336 tests/data/fate/spdif-dca-core-remux.spdif
#tb 0: 1/90000
#media_type 0: audio
#codec_id 0: dts
#sample_rate 0: 48000
#channel_layout_name 0: 5.1(side)
0, 0, 0, 0, 1024, 0x07b79d2a
0, 0, 0, 0, 1024, 0x7eaaba77
0, 0, 0, 0, 1024, 0xbed65c1d
0, 0, 0, 0, 1024, 0x10bc6792
0, 0, 0, 0, 1024, 0xf8436f6e
0, 0, 0, 0, 1024, 0x4454a681
0, 0, 0, 0, 1024, 0xda3ba189