mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
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> (cherry picked from commit 4377affc28d92f759d1de15ac68ce07b1aa48810)
This commit is contained in:
parent
d8605a6b55
commit
d961a634fb
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue