From 41d9f1e6de7951585ba5dd13771e841db493d12e Mon Sep 17 00:00:00 2001 From: arpi Date: Sun, 7 Apr 2002 16:40:54 +0000 Subject: [PATCH] export qscale for postproc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5518 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_ffmpeg.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 5e0d9878b3..eaf07705eb 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -31,6 +31,10 @@ LIBVD_EXTERN(ffmpeg) int avcodec_inited=0; +#ifdef FF_POSTPROCESS +int quant_store[MBR+1][MBC+1]; +#endif + typedef struct { AVCodecContext *avctx; int last_aspect; @@ -197,6 +201,11 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ mpi->stride[2]*=2; } +#ifdef FF_POSTPROCESS + mpi->qscale=&quant_store[0][0]; + mpi->qstride=MBC+1; +#endif + return mpi; }