From c81de44cba99c28d4f0a04b99712cebb44f4dadd Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 23 Jun 2025 04:48:40 +0200 Subject: [PATCH 7/8] avcodec/fic: Ensure skip frames have up-to-date props Signed-off-by: Andreas Rheinhardt --- libavcodec/fic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/fic.c b/libavcodec/fic.c index 2345e7c9ad..47cfb6ae7e 100644 --- a/libavcodec/fic.c +++ b/libavcodec/fic.c @@ -301,6 +301,10 @@ static int fic_decode_frame(AVCodecContext *avctx, AVFrame *rframe, av_log(avctx, AV_LOG_WARNING, "Initial frame is skipped\n"); return AVERROR_INVALIDDATA; } + ret = ff_reget_buffer(avctx, ctx->final_frame, + FF_REGET_BUFFER_FLAG_READONLY); + if (ret < 0) + return ret; goto skip; } -- 2.45.2