hevc: implement pic_output_flag handling
[ffmpeg.git] / libavcodec / hevc.c
index d801a47..d9c9c71 100644 (file)
@@ -546,6 +546,8 @@ static int hls_slice_header(HEVCContext *s)
             return AVERROR_INVALIDDATA;
         }
 
+        // when flag is not present, picture is inferred to be output
+        sh->pic_output_flag = 1;
         if (s->pps->output_flag_present_flag)
             sh->pic_output_flag = get_bits1(gb);