summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorAurélien Zanelli <aurelien.zanelli@parrot.com>2014-08-01 16:40:49 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-08-11 08:37:41 +0200
commit1ef8ffa2d50a13bd39159fcebd7be9bb402f8316 (patch)
tree47792da3e438fc01ba54b26956a84539ab958cb4 /gst-libs
parentac088dd1ac8e7c94214242a51f326951d9242801 (diff)
downloadgstreamer-plugins-bad-1ef8ffa2d50a13bd39159fcebd7be9bb402f8316.tar.gz
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
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/codecparsers/gsth264parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/codecparsers/gsth264parser.c b/gst-libs/gst/codecparsers/gsth264parser.c
index 4a038fc46..f3441983d 100644
--- a/gst-libs/gst/codecparsers/gsth264parser.c
+++ b/gst-libs/gst/codecparsers/gsth264parser.c
@@ -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) {