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>
release/7.0
Fei Wang 1 year ago committed by Nuo Mi
parent c252d2b84a
commit 4027c2e1d0
  1. 2
      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;
}

Loading…
Cancel
Save