[FFmpeg-devel] [PATCH] Allow mpjpeg headers parsing to succeed upon EOF, if required headers are present
Alex Agranovsky
alex at sighthound.com
Sat Sep 12 22:33:17 CEST 2015
libavformat/mpjpegdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c
index b8281fc..8413ae7 100644
--- a/libavformat/mpjpegdec.c
+++ b/libavformat/mpjpegdec.c
@@ -165,7 +165,7 @@ static int parse_multipart_header(AVFormatContext *s)
ret = get_line(s->pb, line, sizeof(line));
if (ret < 0)
- return ret;
+ break;
if (line[0] == '\0')
break;
--
Alex Agranovsky
Sighthound, Inc
www.sighthound.com
More information about the ffmpeg-devel
mailing list