diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-10 01:38:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-28 04:14:43 +0200 |
commit | 3956b12fdec5ec1b1358788a6000b78a724f76aa (patch) | |
tree | 5c913e6f126a7c1b5ace4abf457b0d7b29461d0f | |
parent | 4d9a46fe31e0dbeb4791fd2de896ce0cce5c3c1b (diff) | |
download | ffmpeg-3956b12fdec5ec1b1358788a6000b78a724f76aa.tar.gz |
avcodec/libx265: enable psnr reporting when requested by the user
This is similar to what is done in libx264.c
Fixes Ticket3567
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/libx265.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index 55019d4768..923c750679 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -111,6 +111,7 @@ static av_cold int libx265_encode_init(AVCodecContext *avctx) ctx->params->fpsDenom = avctx->time_base.num * avctx->ticks_per_frame; ctx->params->sourceWidth = avctx->width; ctx->params->sourceHeight = avctx->height; + ctx->params->bEnablePsnr = !!(avctx->flags & CODEC_FLAG_PSNR); if (avctx->sample_aspect_ratio.num > 0 && avctx->sample_aspect_ratio.den > 0) { av_reduce(&sar_num, &sar_den, |