[FFmpeg-devel] [PATCH] vc2enc: Calculate average slice quantiser correctly
James Darnley
jdarnley at obe.tv
Mon Jul 24 22:59:50 EEST 2017
On 2017-07-24 20:27, Kieran Kunhya wrote:
> @@ -1045,7 +1045,7 @@ static av_cold int vc2_encode_end(AVCodecContext *avctx)
> int i;
> VC2EncContext *s = avctx->priv_data;
>
> - av_log(avctx, AV_LOG_INFO, "Qavg: %i\n", s->q_avg);
> + av_log(avctx, AV_LOG_INFO, "Qavg: %f\n", (float)s->q_avg / (s->num_x*s->num_y));
>
> for (i = 0; i < 3; i++) {
> ff_vc2enc_free_transforms(&s->transform_args[i].t);
What about when there is more than 1 frame? I know you don't care about
that for the current work we're doing but I'm sure someone will point
that out.
More information about the ffmpeg-devel
mailing list