[FFmpeg-cvslog] avcodec/fic: Don't prematurely claim to have decoded a frame

Andreas Rheinhardt git at videolan.org
Thu Jul 3 21:17:08 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Jun 23 04:07:09 2025 +0200| [8bed944dda4482e080eeba9724486187e0049cfa] | committer: Andreas Rheinhardt

avcodec/fic: Don't prematurely claim to have decoded a frame

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8bed944dda4482e080eeba9724486187e0049cfa
---

 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;
 }



More information about the ffmpeg-cvslog mailing list