]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/hevcdec.c
Merge commit '943533d64c7fa7a1b2fc9559e67652c349d21d51'
[ffmpeg] / libavcodec / hevcdec.c
index 98ed2a022b2d028376f119d2f4944c5ac75a4df3..ef21595c4436cd567ed1495396ea2ac758bc8502 100644 (file)
@@ -826,8 +826,6 @@ static int hls_slice_header(HEVCContext *s)
     s->HEVClc->tu.cu_qp_offset_cb = 0;
     s->HEVClc->tu.cu_qp_offset_cr = 0;
 
-    s->no_rasl_output_flag = IS_IDR(s) || IS_BLA(s) || (s->nal_unit_type == HEVC_NAL_CRA_NUT && s->last_eos);
-
     return 0;
 }
 
@@ -2677,6 +2675,8 @@ static int hevc_frame_start(HEVCContext *s)
     s->is_decoded        = 0;
     s->first_nal_type    = s->nal_unit_type;
 
+    s->no_rasl_output_flag = IS_IDR(s) || IS_BLA(s) || (s->nal_unit_type == HEVC_NAL_CRA_NUT && s->last_eos);
+
     if (s->ps.pps->tiles_enabled_flag)
         lc->end_of_tiles_x = s->ps.pps->column_width[0] << s->ps.sps->log2_ctb_size;