On 26/09/15 16:21, Vittorio Giovara wrote: > From: Alex Agranovsky <[email protected]> > > Signed-off-by: Michael Niedermayer <[email protected]> > --- > libavformat/mpjpegdec.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c > index df7cb5f..ed98d6f 100644 > --- a/libavformat/mpjpegdec.c > +++ b/libavformat/mpjpegdec.c > @@ -165,8 +165,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; >
What does it solve exactly? _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
