diff options
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; } |