mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
avformat/spdifdec: parse headers for audio codecs
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 4e6d31755b
)
This commit is contained in:
parent
8fa5fa1463
commit
e07d7c75db
@ -236,6 +236,8 @@ int ff_spdif_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
st->codecpar->codec_id = codec_id;
|
||||
if (codec_id == AV_CODEC_ID_EAC3)
|
||||
ffstream(st)->need_parsing = AVSTREAM_PARSE_FULL;
|
||||
else
|
||||
ffstream(st)->need_parsing = AVSTREAM_PARSE_HEADERS;
|
||||
} else if (codec_id != s->streams[0]->codecpar->codec_id) {
|
||||
avpriv_report_missing_feature(s, "Codec change in IEC 61937");
|
||||
return AVERROR_PATCHWELCOME;
|
||||
|
@ -5,10 +5,10 @@ a4e739ebe07c75dd569156d5038696a9 *tests/data/fate/spdif-dca-core-remux.spdif
|
||||
#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
|
||||
0, 0, 0, 960, 1024, 0x07b79d2a
|
||||
0, 960, 960, 960, 1024, 0x7eaaba77
|
||||
0, 1920, 1920, 960, 1024, 0xbed65c1d
|
||||
0, 2880, 2880, 960, 1024, 0x10bc6792
|
||||
0, 3840, 3840, 960, 1024, 0xf8436f6e
|
||||
0, 4800, 4800, 960, 1024, 0x4454a681
|
||||
0, 5760, 5760, 960, 1024, 0xda3ba189
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user