PR #20662 opened by James Almer (jamrial) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20662 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20662.patch
Should fix issue #20661 >From 8d259f3c31cd8cf0a1035d7ea85a2ececece95fa Mon Sep 17 00:00:00 2001 From: James Almer <[email protected]> Date: Tue, 7 Oct 2025 15:39:34 -0300 Subject: [PATCH] avcodec/hevc/refs: don't unconditionally discard non-IRAP frames if no IRAP frame was seen before Should fix issue #20661 Signed-off-by: James Almer <[email protected]> --- libavcodec/hevc/refs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/hevc/refs.c b/libavcodec/hevc/refs.c index ab2e075af0..15f37bfcd8 100644 --- a/libavcodec/hevc/refs.c +++ b/libavcodec/hevc/refs.c @@ -235,6 +235,7 @@ int ff_hevc_set_new_ref(HEVCContext *s, HEVCLayerContext *l, int poc) s->layers[0].cur_frame - s->layers[0].DPB : -1; no_output = !IS_IRAP(s) && (s->poc < s->recovery_poc) && + HEVC_IS_RECOVERING(s) && !(s->avctx->flags & AV_CODEC_FLAG_OUTPUT_CORRUPT) && !(s->avctx->flags2 & AV_CODEC_FLAG2_SHOW_ALL); if (s->sh.pic_output_flag && !no_output) -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
