[vlc-devel] [PATCH 5/5] packetizer: hevc: fill colour_desc with default values

Thomas Guillem thomas at gllm.fr
Sat Apr 16 16:30:34 CEST 2016


---
 modules/packetizer/hevc_nal.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/packetizer/hevc_nal.c b/modules/packetizer/hevc_nal.c
index 5ea2055..d97d106 100644
--- a/modules/packetizer/hevc_nal.c
+++ b/modules/packetizer/hevc_nal.c
@@ -462,6 +462,12 @@ static bool hevc_parse_vui_parameters_rbsp( bs_t *p_bs, hevc_vui_parameters_t *p
             p_vui->vs.colour.transfer_characteristics = bs_read( p_bs, 8 );
             p_vui->vs.colour.matrix_coeffs = bs_read( p_bs, 8 );
         }
+        else
+        {
+            p_vui->vs.colour.colour_primaries = HXXX_PRIMARIES_UNSPECIFIED;
+            p_vui->vs.colour.transfer_characteristics = HXXX_TRANSFER_UNSPECIFIED;
+            p_vui->vs.colour.matrix_coeffs = HXXX_MATRIX_UNSPECIFIED;
+        }
     }
 
     p_vui->chroma_loc_info_present_flag = bs_read1( p_bs );
-- 
2.8.0.rc3



More information about the vlc-devel mailing list