From 1493b237bd3f9707319ac58d315ce45312900c10 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micka=C3=ABl=20Raulet?= Date: Fri, 4 Jul 2014 11:21:54 -0400 Subject: [PATCH] hevc: Replace nal type chek with equivalent IS_IRAP macro Signed-off-by: Vittorio Giovara Signed-off-by: Anton Khirnov --- libavcodec/hevc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 13f989b10fc..9d7a53add87 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -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); -- 2.39.2