hevc: Replace nal type chek with equivalent IS_IRAP macro
authorMickaël Raulet <mraulet@insa-rennes.fr>
Fri, 4 Jul 2014 15:21:54 +0000 (11:21 -0400)
committerAnton Khirnov <anton@khirnov.net>
Fri, 11 Jul 2014 08:41:32 +0000 (08:41 +0000)
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/hevc.c

index 13f989b..9d7a53a 100644 (file)
@@ -470,7 +470,7 @@ static int hls_slice_header(HEVCContext *s)
         if (IS_IDR(s))
             ff_hevc_clear_refs(s);
     }
-    if (s->nal_unit_type >= 16 && s->nal_unit_type <= 23)
+    if (IS_IRAP(s))
         sh->no_output_of_prior_pics_flag = get_bits1(gb);
 
     sh->pps_id = get_ue_golomb_long(gb);