[FFmpeg-devel] [PATCH] vp56: only clear alpha U/V planes.

Ronald S. Bultje rsbultje at gmail.com
Fri Feb 1 19:51:47 CET 2013


From: "Ronald S. Bultje" <rsbultje at gmail.com>

The other planes are already cleared in the idct_put/add() calls.
---
 libavcodec/vp56.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/libavcodec/vp56.c b/libavcodec/vp56.c
index 7df5ada..343264b 100644
--- a/libavcodec/vp56.c
+++ b/libavcodec/vp56.c
@@ -394,8 +394,6 @@ static void vp56_decode_mb(VP56Context *s, int row, int col, int is_alpha)
         mb_type = vp56_decode_mv(s, row, col);
     ref_frame = vp56_reference_frame[mb_type];
 
-    s->dsp.clear_blocks(*s->block_coeff);
-
     s->parse_coeff(s);
 
     vp56_add_predictors_dc(s, ref_frame);
@@ -448,6 +446,11 @@ static void vp56_decode_mb(VP56Context *s, int row, int col, int is_alpha)
             }
             break;
     }
+
+    if (is_alpha) {
+        s->dsp.clear_block(s->block_coeff[4]);
+        s->dsp.clear_block(s->block_coeff[5]);
+    }
 }
 
 static int vp56_size_changed(VP56Context *s)
-- 
1.8.0



More information about the ffmpeg-devel mailing list