Mercurial > libavcodec.hg
changeset 11271:bf3436efe037 libavcodec
Replace ad-hoc fill rectangle by fill_rectangle().
author | michael |
---|---|
date | Wed, 24 Feb 2010 13:12:09 +0000 |
parents | f64dd8297105 |
children | aa9317d124fc |
files | h264_cabac.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/h264_cabac.c Wed Feb 24 13:11:38 2010 +0000 +++ b/h264_cabac.c Wed Feb 24 13:12:09 2010 +0000 @@ -1469,10 +1469,8 @@ mvd_cache[ 0 ][1]= mpy; } }else{ - uint32_t *p= (uint32_t *)&h->mv_cache[list][ scan8[4*i] ][0]; - uint32_t *pd= (uint32_t *)&h->mvd_cache[list][ scan8[4*i] ][0]; - p[0] = p[1] = p[8] = p[9] = 0; - pd[0]= pd[1]= pd[8]= pd[9]= 0; + fill_rectangle(h->mv_cache [list][ scan8[4*i] ], 2, 2, 8, 0, 4); + fill_rectangle(h->mvd_cache[list][ scan8[4*i] ], 2, 2, 8, 0, 4); } } }