From 8bed944dda4482e080eeba9724486187e0049cfa Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 23 Jun 2025 04:07:09 +0200 Subject: [PATCH] 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; }