diff options
author | Mans Rullgard <mans@mansr.com> | 2011-10-08 21:19:51 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-10-09 12:27:19 +0100 |
commit | 4d1418cd4f620b382106542d0f33d96e33a0fdae (patch) | |
tree | c7417a660bdaee4d673e5d703f14348462542984 /libavcodec/h264.c | |
parent | d66b9dec116847400323ca15ee709529b237cdf1 (diff) | |
download | ffmpeg-4d1418cd4f620b382106542d0f33d96e33a0fdae.tar.gz |
h264: fix signed overflows in x*0x01010101 expressions
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 83c26eff29..aac1a15a92 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1668,7 +1668,7 @@ static av_always_inline void hl_decode_mb_predict_luma(H264Context *h, int mb_ty tr_high= ((uint16_t*)ptr)[3 - linesize/2]*0x0001000100010001ULL; topright= (uint8_t*) &tr_high; } else { - tr= ptr[3 - linesize]*0x01010101; + tr= ptr[3 - linesize]*0x01010101u; topright= (uint8_t*) &tr; } }else |