From 6650c4c3a8c87e1242af18af07d9a0a2b5561d78 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Tue, 6 May 2008 17:18:41 +0000 Subject: [PATCH] export dnxhd encoded picture quality Originally committed as revision 13071 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dnxhdenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index e49fc86023..75cd1c7133 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -805,6 +805,8 @@ static int dnxhd_encode_picture(AVCodecContext *avctx, unsigned char *buf, int b goto encode_coding_unit; } + ctx->frame.quality = ctx->qscale*FF_QP2LAMBDA; + return ctx->cid_table->frame_size; }