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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/151/head
Alex Agranovsky 9 years ago committed by Michael Niedermayer
parent 3f9fa2d0b5
commit 276ab7c148
  1. 5
      libavformat/mpjpegdec.c

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

Loading…
Cancel
Save