From 2f3b1b801ac6a95239a20b975d0d99fb255a7a1a Mon Sep 17 00:00:00 2001 From: Alexander Strange Date: Fri, 27 Jun 2008 18:50:06 +0000 Subject: Export qscale so that postprocessing works. Originally committed as revision 14008 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/mdec.c') diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index 63bfd4b0b4..0157204aaf 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -203,8 +203,8 @@ static int decode_frame(AVCodecContext *avctx, } } -// p->quality= (32 + a->inv_qscale/2)/a->inv_qscale; -// memset(p->qscale_table, p->quality, p->qstride*a->mb_height); + p->quality= a->qscale * FF_QP2LAMBDA; + memset(p->qscale_table, a->qscale, p->qstride*a->mb_height); *picture= *(AVFrame*)&a->picture; *data_size = sizeof(AVPicture); -- cgit v1.2.3