[FFmpeg-devel] [PATCH] Allow mpjpeg headers parsing to succeed upon EOF, if required headers are present
Alex Agranovsky
alex at sighthound.com
Sun Sep 13 00:49:41 CEST 2015
Modified patch is attached.
--
Alex Agranovsky
Sighthound, Inc
www.sighthound.com
On September 12, 2015 at 5:37:51 PM, Michael Niedermayer (michaelni at gmx.at) wrote:
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
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch1.diff
Type: application/octet-stream
Size: 492 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150912/6bd72040/attachment.obj>
More information about the ffmpeg-devel
mailing list