diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index eb44862a2c..a1e3ce413f 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -1932,7 +1932,7 @@ static int decode_nal_unit(HEVCContext *s, const uint8_t *nal, int length) if (s->nal_unit_type == NAL_CRA_NUT || s->nal_unit_type == NAL_BLA_W_LP || s->nal_unit_type == NAL_BLA_N_LP || - s->nal_unit_type == NAL_BLA_N_LP) { + s->nal_unit_type == NAL_BLA_W_RADL) { s->max_ra = s->poc; } else { if (IS_IDR(s))