avcodec/h264: Check *log2_weight_denom
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 18 Dec 2014 02:16:39 +0000 (03:16 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 22 Dec 2014 02:17:55 +0000 (03:17 +0100)
commitf13e6ec7a610b665a5f57404e4b37ebabc9367bb
treede13a04b136edc5089ca39b6863c30304dd6cbce
parentbf2c9e1ad4ba08158f79ddd870b35094d667ff78
avcodec/h264: Check *log2_weight_denom

Fixes undefined behavior
Fixes: signal_sigsegv_14768d2_2248_cov_3629497219_h264_h264___pi_20070614T182942.h264
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 61296d41e2de3b41304339e4631dd44c2e15f805)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c