mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
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:
parent
fd793e9498
commit
41df512eb9
1 changed files with 3 additions and 0 deletions
|
@ -831,6 +831,9 @@ gst_h264_parser_parse_pic_timing (GstH264NalParser * nalparser,
|
|||
}
|
||||
|
||||
/* 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);
|
||||
|
||||
if (nalparser->last_sps->vui_parameters_present_flag) {
|
||||
|
|
Loading…
Reference in a new issue