[FFmpeg-cvslog] avcodec/hevcdec: Replace number with enum

Fei Wang git at videolan.org
Mon Mar 27 17:33:35 EEST 2023


ffmpeg | branch: master | Fei Wang <fei.w.wang at intel.com> | Mon Mar 27 13:25:53 2023 +0800| [c38370dc5d3068f302cf8d86c7c85c31f7550429] | committer: J. Dekker

avcodec/hevcdec: Replace number with enum

Keep same style with IS_IDR()/IS_BLA().

Signed-off-by: Fei Wang <fei.w.wang at intel.com>

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

 libavcodec/hevcdec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h
index aab816791e..94609e4699 100644
--- a/libavcodec/hevcdec.h
+++ b/libavcodec/hevcdec.h
@@ -75,7 +75,7 @@
 #define IS_IDR(s) ((s)->nal_unit_type == HEVC_NAL_IDR_W_RADL || (s)->nal_unit_type == HEVC_NAL_IDR_N_LP)
 #define IS_BLA(s) ((s)->nal_unit_type == HEVC_NAL_BLA_W_RADL || (s)->nal_unit_type == HEVC_NAL_BLA_W_LP || \
                    (s)->nal_unit_type == HEVC_NAL_BLA_N_LP)
-#define IS_IRAP(s) ((s)->nal_unit_type >= 16 && (s)->nal_unit_type <= 23)
+#define IS_IRAP(s) ((s)->nal_unit_type >= HEVC_NAL_BLA_W_LP && (s)->nal_unit_type <= HEVC_NAL_RSV_IRAP_VCL23)
 
 enum RPSType {
     ST_CURR_BEF = 0,



More information about the ffmpeg-cvslog mailing list