[FFmpeg-devel] [PATCH] Allow mpjpeg headers parsing to succeed upon EOF, if required headers are present

Michael Niedermayer michaelni at gmx.at
Sat Sep 12 23:35:36 CEST 2015


On Sat, Sep 12, 2015 at 04:33:17PM -0400, Alex Agranovsky wrote:
>  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;

Applying: Allow mpjpeg headers parsing to succeed upon EOF, if required headers are present
fatal: corrupt patch at line 7

also for strict correctness this should probably only break for AVERROR_EOF

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150912/1a2f84fd/attachment.sig>


More information about the ffmpeg-devel mailing list