On 30/09/14 14:52, Derek Buitenhuis wrote:
From: Michael Niedermayer <[email protected]>
This is similar to what is done in libx264.c
Signed-off-by: Michael Niedermayer <[email protected]>
Signed-off-by: Derek Buitenhuis <[email protected]>
---
libavcodec/libx265.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
index bee403d..a3bf2dc 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,
Patch ok, commit message could enjoy a trim in the subject:
libx265: Enable psnr reporting when requested by the user
lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel