diff options
author | Alexander Strange <astrange@ithinksw.com> | 2008-06-27 18:50:06 +0000 |
---|---|---|
committer | Alexander Strange <astrange@ithinksw.com> | 2008-06-27 18:50:06 +0000 |
commit | 2f3b1b801ac6a95239a20b975d0d99fb255a7a1a (patch) | |
tree | 45e68a27677995b1229f8026d5125ed447ca1269 /libavcodec | |
parent | de7bdf58f4f0eae530921ffbcd675ba5b4a41142 (diff) | |
download | ffmpeg-2f3b1b801ac6a95239a20b975d0d99fb255a7a1a.tar.gz |
Export qscale so that postprocessing works.
Originally committed as revision 14008 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mdec.c | 4 |
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); |