[FFmpeg-devel] [PATCH] Fix mlib DCT routine in dsputil

Måns Rullgård mans
Fri Mar 28 03:57:07 CET 2008


Albert Lee <trisk+xine at acm.jhu.edu> writes:

> --- ffmpeg-export-2007-07-31.orig/libavcodec/mlib/dsputil_mlib.c	Tue Jul 31 02:16:05 2007
> +++ ffmpeg-export-2007-07-31/libavcodec/mlib/dsputil_mlib.c	Tue Mar 18 23:55:41 2008
> @@ -416,7 +416,10 @@
>  
>  static void ff_fdct_mlib(DCTELEM *data)
>  {
> +    static const mlib_s16 c[1] = {8};

There's still no sense in declaring this as an array.

>      mlib_VideoDCT8x8_S16_S16 (data, data);
> +    mlib_VectorMulS_S16_Sat (data, &c, 64); /* scaling data by 8 */
>  }
>  
>  void dsputil_init_mlib(DSPContext* c, AVCodecContext *avctx)

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list