diff options
author | Måns Rullgård <mans@mansr.com> | 2010-03-16 02:00:53 +0300 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-03-16 02:00:53 +0300 |
commit | 404793f4ac57fe7615da4fd03cefe9438d1b1fbd (patch) | |
tree | 999a3e8e4aa6ba08ed3c99d97d4b1e16579d8507 /libavcodec/h264.h | |
parent | 493f54ada083b4d6c8f14f02607224fe258c211c (diff) |
H264: fix signed overflow in constant multiplication
This fixes libavcodec/h264.h:1100: warning: integer overflow in expression
Originally committed as revision 22558 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r-- | libavcodec/h264.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h index cac32db828..479ade9074 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -1097,7 +1097,7 @@ static void fill_decode_caches(H264Context *h, int mb_type){ fill_rectangle(&h->direct_cache[scan8[0]], 4, 4, 8, MB_TYPE_16x16>>1, 1); if(IS_DIRECT(top_type)){ - AV_WN32A(&h->direct_cache[scan8[0] - 1*8], 0x01010101*(MB_TYPE_DIRECT2>>1)); + AV_WN32A(&h->direct_cache[scan8[0] - 1*8], 0x01010101u*(MB_TYPE_DIRECT2>>1)); }else if(IS_8X8(top_type)){ int b8_xy = 4*top_xy; h->direct_cache[scan8[0] + 0 - 1*8]= h->direct_table[b8_xy + 2]; |