# HG changeset patch # User mru # Date 1268694053 0 # Node ID 1ce187c7a6114daaf9cea2a1fd8c5b1730ba8381 # Parent 2029a714b7942c5268095298790926cab896ca6f H264: fix signed overflow in constant multiplication This fixes libavcodec/h264.h:1100: warning: integer overflow in expression diff -r 2029a714b794 -r 1ce187c7a611 h264.h --- a/h264.h Mon Mar 15 22:49:46 2010 +0000 +++ b/h264.h Mon Mar 15 23:00:53 2010 +0000 @@ -1097,7 +1097,7 @@ 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];