summaryrefslogtreecommitdiff
path: root/libavcodec/wmv2.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-04-25 00:57:48 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-04-25 00:57:48 +0000
commitdee6dde66928e427db32afd8730024fcf2a1ac35 (patch)
tree758c3e3fe71ae280380a170f1887dd50261667ae /libavcodec/wmv2.c
parentf9e0f2a2065e4f6708a93891773fd5a18abefd47 (diff)
avoid unneeded clear_blocks()
Originally committed as revision 4157 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmv2.c')
-rw-r--r--libavcodec/wmv2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/wmv2.c b/libavcodec/wmv2.c
index e14ee08481..b3e31a4d0f 100644
--- a/libavcodec/wmv2.c
+++ b/libavcodec/wmv2.c
@@ -760,6 +760,7 @@ static int wmv2_decode_mb(MpegEncContext *s, DCTELEM block[6][64])
wmv2_pred_motion(w, &mx, &my);
if(cbp){
+ s->dsp.clear_blocks(s->block[0]);
if(s->per_mb_rl_table){
s->rl_table_index = decode012(&s->gb);
s->rl_chroma_table_index = s->rl_table_index;
@@ -802,6 +803,7 @@ static int wmv2_decode_mb(MpegEncContext *s, DCTELEM block[6][64])
s->rl_chroma_table_index = s->rl_table_index;
}
+ s->dsp.clear_blocks(s->block[0]);
for (i = 0; i < 6; i++) {
if (msmpeg4_decode_block(s, block[i], i, (cbp >> (5 - i)) & 1, NULL) < 0)
{