]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/hevc, h2645_parse: Fix HEVC NAL unit names and constants
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 17 Mar 2020 23:11:56 +0000 (00:11 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 24 Mar 2020 22:33:24 +0000 (23:33 +0100)
This commit fixes the names and constants of the reserved NAL units
with nal_unit_type 22 resp. 23. They were "IRAP_IRAP_VLC2x", but are
actually "RSV_IRAP_VLC2x".

This also required a change to cbs_h265_syntax_template.c.

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/cbs_h265_syntax_template.c
libavcodec/h2645_parse.c
libavcodec/hevc.h

index 15114548c60094a837235ac7b93a1a0813fa04d4..180a045c34138bf79e212cbcedf3688c53808d9b 100644 (file)
@@ -1275,7 +1275,7 @@ static int FUNC(slice_segment_header)(CodedBitstreamContext *ctx, RWContext *rw,
     flag(first_slice_segment_in_pic_flag);
 
     if (current->nal_unit_header.nal_unit_type >= HEVC_NAL_BLA_W_LP &&
-        current->nal_unit_header.nal_unit_type <= HEVC_NAL_IRAP_VCL23)
+        current->nal_unit_header.nal_unit_type <= HEVC_NAL_RSV_IRAP_VCL23)
         flag(no_output_of_prior_pics_flag);
 
     ue(slice_pic_parameter_set_id, 0, 63);
index 0f3343004f9f393a7ec234ffd2c1290b85d2a3e4..2e03871640c671670611f8c3f0440839e206e8ab 100644 (file)
@@ -169,8 +169,8 @@ static const char *hevc_nal_type_name[64] = {
     "IDR_W_RADL", // HEVC_NAL_IDR_W_RADL
     "IDR_N_LP", // HEVC_NAL_IDR_N_LP
     "CRA_NUT", // HEVC_NAL_CRA_NUT
-    "IRAP_IRAP_VCL22", // HEVC_NAL_IRAP_VCL22
-    "IRAP_IRAP_VCL23", // HEVC_NAL_IRAP_VCL23
+    "RSV_IRAP_VCL22", // HEVC_NAL_RSV_IRAP_VCL22
+    "RSV_IRAP_VCL23", // HEVC_NAL_RSV_IRAP_VCL23
     "RSV_VCL24", // HEVC_NAL_RSV_VCL24
     "RSV_VCL25", // HEVC_NAL_RSV_VCL25
     "RSV_VCL26", // HEVC_NAL_RSV_VCL26
index 56b5541d90a569a943f0543dcf2283365d6d393e..e15d89fa956a6b87952c6b5c593c65d78a35b2b1 100644 (file)
@@ -48,8 +48,8 @@ enum HEVCNALUnitType {
     HEVC_NAL_IDR_W_RADL = 19,
     HEVC_NAL_IDR_N_LP   = 20,
     HEVC_NAL_CRA_NUT    = 21,
-    HEVC_NAL_IRAP_VCL22 = 22,
-    HEVC_NAL_IRAP_VCL23 = 23,
+    HEVC_NAL_RSV_IRAP_VCL22 = 22,
+    HEVC_NAL_RSV_IRAP_VCL23 = 23,
     HEVC_NAL_RSV_VCL24  = 24,
     HEVC_NAL_RSV_VCL25  = 25,
     HEVC_NAL_RSV_VCL26  = 26,