diff options
author | Ganesh Ajjanagadde <[email protected]> | 2015-10-09 15:59:04 -0400 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2015-10-10 14:43:22 +0200 |
commit | 979572365f2133f969f3f49ec6a99cc8739d2eba (patch) | |
tree | f88ea2f8fedeb946846af5d9219bdca8f91b4db8 /doc/examples/metadata.c | |
parent | c4e23ca8537701a38427f90b2dd72eb681d011d6 (diff) |
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 <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'doc/examples/metadata.c')
0 files changed, 0 insertions, 0 deletions