aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/img2_brender_pix.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-09 15:59:04 -0400
committerMichael Niedermayer <michael@niedermayer.cc>2015-10-10 14:43:22 +0200
commit979572365f2133f969f3f49ec6a99cc8739d2eba (patch)
treef88ea2f8fedeb946846af5d9219bdca8f91b4db8 /libavformat/img2_brender_pix.c
parentc4e23ca8537701a38427f90b2dd72eb681d011d6 (diff)
downloadffmpeg-979572365f2133f969f3f49ec6a99cc8739d2eba.tar.gz
avcodec/ac3enc: fix undefined negative left shift
This should fix the undefined behavior reported in: https://trac.ffmpeg.org/ticket/4727. I can reproduce this at runtime: simply stick in an abort call in asym_quant to check if c < 0 and run FATE. I don't know ac3 so I can't confirm if negative coefficients are intentional, but at the moment they clearly are according to FATE. This resolves the undefined behavior. Tested with FATE. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/img2_brender_pix.c')
0 files changed, 0 insertions, 0 deletions