codecparsers_h264: initialize some fields of pic_timing structure

Otherwise pic timing structure can have invalid cpb_removal_delay,
dpb_output_delay or pic_struct_present_flag which are blindly retrieved
in h264parse.

https://bugzilla.gnome.org/show_bug.cgi?id=734124
This commit is contained in:
Aurélien Zanelli 2014-08-01 16:40:49 +02:00 committed by Sebastian Dröge
parent fd793e9498
commit 41df512eb9

View file

@ -831,6 +831,9 @@ gst_h264_parser_parse_pic_timing (GstH264NalParser * nalparser,
} }
/* default values */ /* default values */
tim->cpb_removal_delay = 0;
tim->dpb_output_delay = 0;
tim->pic_struct_present_flag = FALSE;
memset (tim->clock_timestamp_flag, 0, 3); memset (tim->clock_timestamp_flag, 0, 3);
if (nalparser->last_sps->vui_parameters_present_flag) { if (nalparser->last_sps->vui_parameters_present_flag) {