[FFmpeg-devel] [PATCH 29/33] bfin: (probably) fix h264 10bit because it used 8bit clear_blocks.

Ronald S. Bultje rsbultje at gmail.com
Wed Feb 6 04:27:42 CET 2013


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

---
 libavcodec/bfin/dsputil_bfin.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavcodec/bfin/dsputil_bfin.c b/libavcodec/bfin/dsputil_bfin.c
index da6edb5..b3d2572 100644
--- a/libavcodec/bfin/dsputil_bfin.c
+++ b/libavcodec/bfin/dsputil_bfin.c
@@ -195,7 +195,7 @@ static int bfin_pix_abs8_xy2 (void *c, uint8_t *blk1, uint8_t *blk2, int line_si
 
 */
 
-void ff_dsputil_init_bfin( DSPContext* c, AVCodecContext *avctx )
+void ff_hpeldsp_init_bfin(HpelDSPContext* c, int flags)
 {
     const int high_bit_depth = avctx->bits_per_raw_sample > 8;
 
@@ -203,9 +203,10 @@ void ff_dsputil_init_bfin( DSPContext* c, AVCodecContext *avctx )
     c->put_pixels_clamped = ff_bfin_put_pixels_clamped;
     c->add_pixels_clamped = ff_bfin_add_pixels_clamped;
 
-    if (!high_bit_depth)
+    if (!high_bit_depth) {
     c->get_pixels         = ff_bfin_get_pixels;
     c->clear_blocks       = bfin_clear_blocks;
+    }
     c->pix_sum            = ff_bfin_pix_sum;
     c->pix_norm1          = ff_bfin_pix_norm1;
 
-- 
1.7.11.3



More information about the ffmpeg-devel mailing list