aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/mlib
diff options
context:
space:
mode:
authorMartin Olschewski2002-08-30 18:17:20 +0000
committerMichael Niedermayer2002-08-30 18:17:20 +0000
commitc7e079314bc47ed09826ec343f4582226c6ed296 (patch)
tree269a2188e3e2e6b2d17c483baf00a57c8c1cbf9a /libavcodec/mlib
parent471d7dc3d076bfb47bfb14bb8472abc92103e58b (diff)
sun solaris compilation bugfix, patch by (Martin Olschewski <olschewski at zpr dot uni-koeln dot de>)
Originally committed as revision 882 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mlib')
-rw-r--r--libavcodec/mlib/dsputil_mlib.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libavcodec/mlib/dsputil_mlib.c b/libavcodec/mlib/dsputil_mlib.c
index 4539b6464a..c380eb45f7 100644
--- a/libavcodec/mlib/dsputil_mlib.c
+++ b/libavcodec/mlib/dsputil_mlib.c
@@ -18,6 +18,7 @@
*/
#include "../dsputil.h"
+#include "../mpegvideo.h"
#include <mlib_types.h>
#include <mlib_status.h>
@@ -125,7 +126,6 @@ void ff_fdct_mlib(DCTELEM *data)
void dsputil_init_mlib(void)
{
- av_fdct = ff_fdct_mlib;
ff_idct = ff_idct_mlib;
put_pixels_tab[0] = put_pixels_mlib;
@@ -142,3 +142,10 @@ void dsputil_init_mlib(void)
add_pixels_clamped = add_pixels_clamped_mlib;
}
+
+void MPV_common_init_mlib(MpegEncContext *s)
+{
+ if(s->avctx->dct_algo==FF_DCT_AUTO || s->avctx->dct_algo==FF_DCT_MLIB){
+ s->fdct = ff_fdct_mlib;
+ }
+}