Commit 1ca042a1 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/snowenc: Export quality/pict_type/PSNR stats through side data

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 27294bc2
......@@ -1850,6 +1850,11 @@ redo_frame:
emms_c();
ff_side_data_set_encoder_stats(pkt, s->current_picture->quality,
s->current_picture->error,
(s->avctx->flags&AV_CODEC_FLAG_PSNR) ? 4 : 0,
s->current_picture->pict_type);
pkt->size = ff_rac_terminate(c);
if (s->current_picture->key_frame)
pkt->flags |= AV_PKT_FLAG_KEY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment