comparison h264_cabac.c @ 11271:bf3436efe037 libavcodec

Replace ad-hoc fill rectangle by fill_rectangle().
author michael
date Wed, 24 Feb 2010 13:12:09 +0000
parents 2e77618615eb
children aa9317d124fc
comparison
equal deleted inserted replaced
11270:f64dd8297105 11271:bf3436efe037
1467 1467
1468 mvd_cache[ 0 ][0]= mpx; 1468 mvd_cache[ 0 ][0]= mpx;
1469 mvd_cache[ 0 ][1]= mpy; 1469 mvd_cache[ 0 ][1]= mpy;
1470 } 1470 }
1471 }else{ 1471 }else{
1472 uint32_t *p= (uint32_t *)&h->mv_cache[list][ scan8[4*i] ][0]; 1472 fill_rectangle(h->mv_cache [list][ scan8[4*i] ], 2, 2, 8, 0, 4);
1473 uint32_t *pd= (uint32_t *)&h->mvd_cache[list][ scan8[4*i] ][0]; 1473 fill_rectangle(h->mvd_cache[list][ scan8[4*i] ], 2, 2, 8, 0, 4);
1474 p[0] = p[1] = p[8] = p[9] = 0;
1475 pd[0]= pd[1]= pd[8]= pd[9]= 0;
1476 } 1474 }
1477 } 1475 }
1478 } 1476 }
1479 } else if( IS_DIRECT(mb_type) ) { 1477 } else if( IS_DIRECT(mb_type) ) {
1480 ff_h264_pred_direct_motion(h, &mb_type); 1478 ff_h264_pred_direct_motion(h, &mb_type);