Commit c5c09501 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/aiffdec: do not fail if header parser hits EOF

Based on patch by Martin Vignali <martin.vignali@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ae81e8a9
......@@ -223,6 +223,11 @@ static int aiff_read_header(AVFormatContext *s)
while (filesize > 0) {
/* parse different chunks */
size = get_tag(pb, &tag);
if (size == AVERROR_EOF && offset > 0 && st->codec->block_align) {
av_log(s, AV_LOG_WARNING, "header parser hit EOF\n");
goto got_sound;
}
if (size < 0)
return 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