summaryrefslogtreecommitdiff
path: root/libavcodec/mdec.c
diff options
context:
space:
mode:
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);