diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-28 03:17:39 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-28 03:22:23 +0300 |
commit | 1ca042a14b9347d191eb4abf8dc74ac48db272fd (patch) | |
tree | 4ca8dc9dd1fe5cde5ecc732c04493f9dbabd62b1 /libavcodec/snowenc.c | |
parent | 27294bc203a4e1de9b8047c340f51c76f8f9a0af (diff) |
avcodec/snowenc: Export quality/pict_type/PSNR stats through side data
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r-- | libavcodec/snowenc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index 134c8c12d3..16c7e05c81 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -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; |