mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/aiffdec: Stop header parsing once a non header packet is reached
Fix Ticket3530 Based-on debuging work by Martin Vignali <martin.vignali@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d2009c77fb
commit
ae81e8a9c5
@ -306,6 +306,9 @@ static int aiff_read_header(AVFormatContext *s)
|
||||
if(ff_mov_read_chan(s, pb, st, size) < 0)
|
||||
return AVERROR_INVALIDDATA;
|
||||
break;
|
||||
case 0:
|
||||
if (offset > 0 && st->codec->block_align) // COMM && SSND
|
||||
goto got_sound;
|
||||
default: /* Jump */
|
||||
if (size & 1) /* Always even aligned */
|
||||
size++;
|
||||
|
Loading…
Reference in New Issue
Block a user