diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-24 13:12:09 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-24 13:12:09 +0000 |
commit | 90332debfe5f7fa7cf645f98fd300cff2f6bcbd5 (patch) | |
tree | c2ad44362df0339a6bcf045d5511ba2bfe41882c /libavcodec/h264_cabac.c | |
parent | d2df291f73377f87cc92fe9b3b516aa55e1ed3cd (diff) | |
download | ffmpeg-streaming-90332debfe5f7fa7cf645f98fd300cff2f6bcbd5.zip ffmpeg-streaming-90332debfe5f7fa7cf645f98fd300cff2f6bcbd5.tar.gz |
Replace ad-hoc fill rectangle by fill_rectangle().
Originally committed as revision 22025 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264_cabac.c')
-rw-r--r-- | libavcodec/h264_cabac.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c index 8d471b2..576273c 100644 --- a/libavcodec/h264_cabac.c +++ b/libavcodec/h264_cabac.c @@ -1469,10 +1469,8 @@ decode_intra_mb: 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); } } } |