Changeset e50ae60d in ffmpeg
- Timestamp:
-
May 20, 2014, 2:21:06 AM
(11 years ago)
- Author:
- Michael Niedermayer <michaelni@gmx.at>
- Branches:
- master
- Children:
- 6310eb80
- Parents:
- 7d25af1
- git-author:
- Katerina Barone-Adesi <katerinab@gmail.com> (05/19/14 15:27:52)
- git-committer:
- Michael Niedermayer <michaelni@gmx.at> (05/20/14 02:21:06)
- Message:
-
avcodec/fate-idct8x8: Defined behavior: eliminate negative left-shifts.
The original code left-shifts negative values, which is undefined
in the C99 specification (the one used during normal FFmpeg 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
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
The assembly generated by gcc is unchanged by this commit
-
(No files)
-