[FFmpeg-cvslog] hevc: Replace nal type chek with equivalent IS_IRAP macro

Mickaël Raulet git at videolan.org
Fri Jul 11 12:05:24 CEST 2014


ffmpeg | branch: master | Mickaël Raulet <mraulet at insa-rennes.fr> | Fri Jul  4 11:21:54 2014 -0400| [1493b237bd3f9707319ac58d315ce45312900c10] | committer: Anton Khirnov

hevc: Replace nal type chek with equivalent IS_IRAP macro

Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1493b237bd3f9707319ac58d315ce45312900c10
---

 libavcodec/hevc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 13f989b..9d7a53a 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);



More information about the ffmpeg-cvslog mailing list