1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

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

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-06-23 04:48:40 +02:00
parent 8bed944dda
commit 45920251d9

View File

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