[FFmpeg-cvslog] avcodec/fic: Ensure skip frames have up-to-date props

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


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Jun 23 04:48:40 2025 +0200| [45920251d9e91c42d7beda616760a63734cf666c] | committer: Andreas Rheinhardt

avcodec/fic: Ensure skip frames have up-to-date props

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

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

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



More information about the ffmpeg-cvslog mailing list