[FFmpeg-devel] [PATCH] Fix potential crash in swscale.c:pal2rgbWrapper()

Stefano Sabatini stefano.sabatini-lala
Sun Jan 17 15:11:30 CET 2010


Hi, as in subject.

If pal2rgbWrapper is fed with a non-paletted format it currently
prints an error and then select a converter anyway, which will then be
used to scale non-paletted formats.

Sane behavior seems to simply warn the user and don't do nothing.

Bonus patch factorize the log message printing in case of error.

Regards.
-- 
FFmpeg = Fiendish and Furious Murdering Power Ecumenical God
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-pal2rgb-wrapper.patch
Type: text/x-diff
Size: 949 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100117/b205e733/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: factorize-errlog-in-pal2rgb-wrapper.patch
Type: text/x-diff
Size: 1473 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100117/b205e733/attachment-0001.patch>



More information about the ffmpeg-devel mailing list