1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

EA cdata demuxer: support files with 20 byte header

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Peter Ross 2011-04-23 22:09:19 +10:00 committed by Michael Niedermayer
parent db62d89833
commit c2a8f12585

View File

@ -63,7 +63,7 @@ static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap)
}; };
sample_rate = avio_rb16(pb); sample_rate = avio_rb16(pb);
avio_skip(pb, 12); avio_skip(pb, (avio_r8(pb) & 0x20) ? 15 : 11);
st = av_new_stream(s, 0); st = av_new_stream(s, 0);
if (!st) if (!st)