[vlc-commits] packetizer: hevc: fill colour_desc with default values
Thomas Guillem
git at videolan.org
Sun Apr 17 13:14:16 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Apr 16 17:27:57 2016 +0300| [dcc9ffd37e81e181e9fabadee0f91163ebb8c558] | committer: Thomas Guillem
packetizer: hevc: fill colour_desc with default values
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dcc9ffd37e81e181e9fabadee0f91163ebb8c558
---
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 );
More information about the vlc-commits
mailing list