* [FFmpeg-devel] [PATCH] avcodec/hevc/refs: don't unconditionally discard non-IRAP frames if no IRAP frame was seen before (PR #20662)
@ 2025-10-07 18:40 James Almer via ffmpeg-devel
0 siblings, 0 replies; only message in thread
From: James Almer via ffmpeg-devel @ 2025-10-07 18:40 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: James Almer
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 <jamrial@gmail.com>
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 <jamrial@gmail.com>
---
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 -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-10-07 18:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-07 18:40 [FFmpeg-devel] [PATCH] avcodec/hevc/refs: don't unconditionally discard non-IRAP frames if no IRAP frame was seen before (PR #20662) James Almer via ffmpeg-devel
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ http://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git