[vlc-devel] [PATCH 2/3] packetizer: h264: fix sps colour desc not read correctly

Thomas Guillem thomas at gllm.fr
Sat Apr 16 14:58:43 CEST 2016


It should be read if colour_description_present_flag is true, not if
video_signal_type_present_flag is.
---
 modules/packetizer/h264_nal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c
index b4f56c6..71d946f 100644
--- a/modules/packetizer/h264_nal.c
+++ b/modules/packetizer/h264_nal.c
@@ -429,7 +429,7 @@ static bool h264_parse_sequence_parameter_set_rbsp( bs_t *p_bs,
         {
             bs_read( p_bs, 4 );
             /* colour desc */
-            bs_read( p_bs, 1 );
+            i_tmp = bs_read( p_bs, 1 );
             if ( i_tmp )
                 bs_read( p_bs, 24 );
         }
-- 
2.8.0.rc3



More information about the vlc-devel mailing list