Commit 276ab7c1 authored by Alex Agranovsky's avatar Alex Agranovsky Committed by Michael Niedermayer

avformat/mpjpegdec: Allow mpjpeg headers parsing to succeed upon EOF, if...

avformat/mpjpegdec: Allow mpjpeg headers parsing to succeed upon EOF, if required headers are present
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 3f9fa2d0
......@@ -164,8 +164,11 @@ static int parse_multipart_header(AVFormatContext *s)
char *tag, *value;
ret = get_line(s->pb, line, sizeof(line));
if (ret < 0)
if (ret < 0) {
if (ret==AVERROR_EOF)
break;
return ret;
}
if (line[0] == '\0')
break;
......
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