aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/svq1_cb.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-03-11 14:40:23 +0000
committerMark Thompson <sw@jkqxz.net>2018-03-18 17:54:55 +0000
commit0e782661d63b39d729b2167e75a690b4e2934740 (patch)
treecf25484ebe10d89d5466f8fb497e75160f06665f /libavcodec/svq1_cb.h
parentce1d77a5e7cebce11074bf6f9e38ad6da37338ff (diff)
downloadffmpeg-0e782661d63b39d729b2167e75a690b4e2934740.tar.gz
cbs_h264: Fix overflow in shifts
The type of the result of a shift operation is unaffected by the type of the right operand, so some existing code overflows with undefined behaviour when the element length is 32. Add a helper macro to calculate the maximum value correctly and then use it everywhere this pattern appears. Found-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
Diffstat (limited to 'libavcodec/svq1_cb.h')
0 files changed, 0 insertions, 0 deletions