summaryrefslogtreecommitdiff
path: root/libavcodec/mdec.c
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2008-06-27 18:50:06 +0000
committerAlexander Strange <astrange@ithinksw.com>2008-06-27 18:50:06 +0000
commit2f3b1b801ac6a95239a20b975d0d99fb255a7a1a (patch)
tree45e68a27677995b1229f8026d5125ed447ca1269 /libavcodec/mdec.c
parentde7bdf58f4f0eae530921ffbcd675ba5b4a41142 (diff)
Export qscale so that postprocessing works.
Originally committed as revision 14008 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mdec.c')
-rw-r--r--libavcodec/mdec.c4
1 files changed, 2 insertions, 2 deletions
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);