avformat/mpjpegdec: Allow mpjpeg headers parsing to succeed upon EOF, if required headers are present

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Alex Agranovsky 2015-09-12 20:34:14 -04:00 committed by Michael Niedermayer
parent 3f9fa2d0b5
commit 276ab7c148
1 changed files with 4 additions and 1 deletions

View File

@ -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;