From 7b7ca5cce9214c3439c3f2fba764f7b443fe33d3 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 23 Jun 2025 04:07:09 +0200 Subject: [PATCH 6/8] avcodec/fic: Don't prematurely claim to have decoded a frame Signed-off-by: Andreas Rheinhardt --- libavcodec/fic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/fic.c b/libavcodec/fic.c index 7f5257f01c..2345e7c9ad 100644 --- a/libavcodec/fic.c +++ b/libavcodec/fic.c @@ -431,9 +431,9 @@ static int fic_decode_frame(AVCodecContext *avctx, AVFrame *rframe, } skip: - *got_frame = 1; if ((ret = av_frame_ref(rframe, ctx->final_frame)) < 0) return ret; + *got_frame = 1; return avpkt->size; } -- 2.45.2