[FFmpeg-devel] [PATCH]lavf/img2dec: Skip SOF size when probing jpeg
Michael Niedermayer
michael at niedermayer.cc
Fri Feb 26 00:13:44 CET 2016
On Thu, Feb 25, 2016 at 11:27:21PM +0100, Carl Eugen Hoyos wrote:
> Hi!
>
> Attached patch fixes the sample Clément kindly provided:
> http://lucy.pkh.me/samples/img.jpg?foo=bar
>
> Please comment, Carl Eugen
> img2dec.c | 1 +
> 1 file changed, 1 insertion(+)
> 52bcdf49dd6f17c381cf1210bb70e807bccf14e4 patchjpegsof.diff
> diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
> index a755b6f..ce40aa5 100644
> --- a/libavformat/img2dec.c
> +++ b/libavformat/img2dec.c
> @@ -706,6 +706,7 @@ static int jpeg_probe(AVProbeData *p)
> case 0xC1:
> case 0xC2:
> case 0xC3:
> + i += AV_RB16(&b[i + 2]) + 1;
> case 0xC5:
> case 0xC6:
> case 0xC7:
shouldnt this also be done for these 3?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- 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/20160226/b024056d/attachment.sig>
More information about the ffmpeg-devel
mailing list