Message ID | 20240728102527.17991-22-ffmpeg@haasn.xyz |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,01/22] avutil/dovi_meta: document static vs dynamic ext blocks | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index 718bd21b20..325c4fdd07 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -792,9 +792,11 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, } } else if (ctx->dovi.cfg.dv_profile) { av_log(avctx, AV_LOG_ERROR, "Dolby Vision enabled, but received frame " - "without AV_FRAME_DATA_DOVI_METADATA"); - free_picture(ctx, &x265pic); - return AVERROR_INVALIDDATA; + "without AV_FRAME_DATA_DOVI_METADATA\n"); + if (avctx->strict_std_compliance >= FF_COMPLIANCE_STRICT) { + free_picture(ctx, &x265pic); + return AVERROR_INVALIDDATA; + } } #endif }
From: Niklas Haas <git@haasn.dev> See previous commit for justification --- libavcodec/libx265.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)