diff options
author | Katerina Barone-Adesi <katerinab@gmail.com> | 2016-03-02 18:52:25 -0500 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-03-05 08:26:36 -0500 |
commit | 1389b4c18d1042c196603ba66c25113bcee1738b (patch) | |
tree | e7a6f5258a868a4e6b854f986773431debe6eb38 /libavcodec/vp6.c | |
parent | e10b7ef2fe56603fb1baac6b20fd6bd0a3fdd0d0 (diff) | |
download | ffmpeg-1389b4c18d1042c196603ba66c25113bcee1738b.tar.gz |
idct8x8: Fix undefined negative shifts
The original code left-shifts negative values, which is undefined
in the C99 specification (the one used during normal Libav compilation).
This change multiplies by (1 << shift), which is functionally equivalent,
but has defined behavior.
With this change, fate-idct8x8 compiled with --fsanitize=undefined works.
Bug-Id: 686
Diffstat (limited to 'libavcodec/vp6.c')
0 files changed, 0 insertions, 0 deletions