[vlc-commits] packetizer: h264: store color planes flag

Francois Cartegnie git at videolan.org
Tue Feb 7 15:16:07 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb  7 15:07:26 2017 +0100| [c944c87fb5e412ad6cd08470451d4b874b0dd360] | committer: Francois Cartegnie

packetizer: h264: store color planes flag

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

 modules/packetizer/h264_nal.c | 4 +++-
 modules/packetizer/h264_nal.h | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c
index 819666c..a8b7110 100644
--- a/modules/packetizer/h264_nal.c
+++ b/modules/packetizer/h264_nal.c
@@ -288,7 +288,9 @@ static bool h264_parse_sequence_parameter_set_rbsp( bs_t *p_bs,
         /* chroma_format_idc */
         p_sps->i_chroma_idc = bs_read_ue( p_bs );
         if( p_sps->i_chroma_idc == 3 )
-            bs_skip( p_bs, 1 ); /* separate_colour_plane_flag */
+            p_sps->b_separate_colour_planes_flag = bs_read1( p_bs );
+        else
+            p_sps->b_separate_colour_planes_flag = 0;
         /* bit_depth_luma_minus8 */
         p_sps->i_bit_depth_luma = bs_read_ue( p_bs ) + 8;
         /* bit_depth_chroma_minus8 */
diff --git a/modules/packetizer/h264_nal.h b/modules/packetizer/h264_nal.h
index b5776c2..374a961 100644
--- a/modules/packetizer/h264_nal.h
+++ b/modules/packetizer/h264_nal.h
@@ -91,6 +91,7 @@ struct h264_sequence_parameter_set_t
     uint8_t i_chroma_idc;
     uint8_t i_bit_depth_luma;
     uint8_t i_bit_depth_chroma;
+    uint8_t b_separate_colour_planes_flag;
 
     uint32_t pic_width_in_mbs_minus1;
     uint32_t pic_height_in_map_units_minus1;



More information about the vlc-commits mailing list