changeset 929:c35f06d95e64 libavcodec

mlib fix patch by (Juergen Keil <jk at tools dot de>)
author michaelni
date Sun, 15 Dec 2002 22:42:59 +0000
parents 5627a7b7ce83
children 6bcb214d6a17
files mlib/dsputil_mlib.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mlib/dsputil_mlib.c	Wed Dec 11 08:56:28 2002 +0000
+++ b/mlib/dsputil_mlib.c	Sun Dec 15 22:42:59 2002 +0000
@@ -198,6 +198,9 @@
 }
 
 
+static void (*put_pixels_clamped)(const DCTELEM *block, UINT8 *pixels, int line_size);
+
+
 static void add_pixels_clamped_mlib(const DCTELEM *block, UINT8 *pixels, int line_size)
 {
     mlib_VideoAddBlock_U8_S16(pixels, (mlib_s16 *)block, line_size);
@@ -215,7 +218,7 @@
 static void ff_idct_add_mlib(UINT8 *dest, int line_size, DCTELEM *data)
 {
     mlib_VideoIDCT8x8_S16_S16 (data, data);
-    add_pixels_clamped(data, dest, line_size);
+    mlib_VideoAddBlock_U8_S16(dest, (mlib_s16 *)data, line_size);
 }
 
 static void ff_fdct_mlib(DCTELEM *data)
@@ -247,6 +250,7 @@
     c->put_no_rnd_pixels_tab[1][0] = put_pixels8_mlib;
 
     c->add_pixels_clamped = add_pixels_clamped_mlib;
+    put_pixels_clamped = c->put_pixels_clamped;
 }
 
 void MPV_common_init_mlib(MpegEncContext *s)