Commit ae81e8a9 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d2009c77
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment