Commit 55fa84a4 authored by mru's avatar mru

H264: fix signed overflow in constant multiplication

This fixes libavcodec/h264.h:1100: warning: integer overflow in expression

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22558 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 71698b0d
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment