aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/fmtconvert.h
diff options
context:
space:
mode:
authorNeil Birkbeck <neil.birkbeck@gmail.com>2013-09-20 17:25:40 -0700
committerMichael Niedermayer <michaelni@gmx.at>2013-09-21 03:10:45 +0200
commita11c16a0b0cadf3a14fa5e7329c2a144a2165bc6 (patch)
treecf32d69ec0b78417ad57204e20d4f58c2d7e5deb /libavcodec/fmtconvert.h
parent15672e832f47dd729f3214e5e1a5bc8e2d1e9cc1 (diff)
downloadffmpeg-a11c16a0b0cadf3a14fa5e7329c2a144a2165bc6.tar.gz
avfilter/vf_psnr: Prevent integer overflow.
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@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/fmtconvert.h')
0 files changed, 0 insertions, 0 deletions