[FFmpeg-devel] [PATCH] Prevent integer overflow in vf_psnr.c.

Michael Niedermayer michaelni at gmx.at
Sat Sep 21 03:04:05 CEST 2013

On Fri, Sep 20, 2013 at 05:25:40PM -0700, Neil Birkbeck wrote:
> The 32-bit integer accumulator in MSE computation can overflow for 8-bit frame data.  
> (e.g., for 1080p white frame compared to a black frame can give sum of 255*255*1080*1920 > 2^32).
> Signed-off-by: Neil Birkbeck <neil.birkbeck at gmail.com>



Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130921/7edefcdb/attachment.asc>

More information about the ffmpeg-devel mailing list