[vlc-commits] packetizer: h264: fix sps colour desc not read correctly

Thomas Guillem git at videolan.org
Sun Apr 17 13:14:15 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Apr 16 15:48:53 2016 +0300| [7b38aad809446def7a575806359ebd1c8e223f73] | committer: Thomas Guillem

packetizer: h264: fix sps colour desc not read correctly

It should be read if colour_description_present_flag is true, not if
video_signal_type_present_flag is.

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

 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 );
         }



More information about the vlc-commits mailing list