aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorFei Wang <fei.w.wang@intel.com>2024-03-11 09:58:40 +0800
committerNuo Mi <nuomi2021@gmail.com>2024-03-12 20:25:25 +0800
commit4027c2e1d03915f0dd9c58f4f9474f60710fdb39 (patch)
tree56900150330c11578343392af655b2f6ca3fe733 /libavcodec
parentc252d2b84a35e10d541f857632bafd9326023e72 (diff)
downloadffmpeg-4027c2e1d03915f0dd9c58f4f9474f60710fdb39.tar.gz
lavc/vvc_ps: Correct NoOutputBeforeRecoveryFlag of IDR
The NoOutputBeforeRecoveryFlag of an IDR frame should be set to 1 as spec says in 8.1.1. Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vvc/vvc_ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vvc/vvc_ps.c b/libavcodec/vvc/vvc_ps.c
index e6e46d2039..7972803da6 100644
--- a/libavcodec/vvc/vvc_ps.c
+++ b/libavcodec/vvc/vvc_ps.c
@@ -742,7 +742,7 @@ static int decode_frame_ps(VVCFrameParamSets *fps, const VVCParamSets *ps,
static void decode_recovery_flag(VVCContext *s)
{
if (IS_IDR(s))
- s->no_output_before_recovery_flag = 0;
+ s->no_output_before_recovery_flag = 1;
else if (IS_CRA(s) || IS_GDR(s))
s->no_output_before_recovery_flag = s->last_eos;
}