summaryrefslogtreecommitdiff
path: root/ext/smoothstreaming
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-11-07 00:16:12 +0000
committerTim-Philipp Müller <tim@centricular.com>2014-11-07 00:16:12 +0000
commitefbae700a618220669dd0e3df3a1a5da113c7cfd (patch)
tree49b55bd128c8322a89ccb9f94d8511c6367a5bdb /ext/smoothstreaming
parent7d48fe1c1e5a7da3c6218fb4de0e7ff264fdf94d (diff)
downloadgstreamer-plugins-bad-efbae700a618220669dd0e3df3a1a5da113c7cfd.tar.gz
smoothstreaming: initialise new GstH264NalUnit fields
CID #1251107.
Diffstat (limited to 'ext/smoothstreaming')
-rw-r--r--ext/smoothstreaming/gstmssmanifest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/smoothstreaming/gstmssmanifest.c b/ext/smoothstreaming/gstmssmanifest.c
index f8ccb4075..63519d39f 100644
--- a/ext/smoothstreaming/gstmssmanifest.c
+++ b/ext/smoothstreaming/gstmssmanifest.c
@@ -423,7 +423,7 @@ _gst_mss_stream_add_h264_codec_data (GstCaps * caps, const gchar * codecdatastr)
GstBuffer *buffer;
gchar *sps_str;
gchar *pps_str;
- GstH264NalUnit nalu;
+ GstH264NalUnit nalu = { 0, };
GstH264SPS sps_struct;
GstH264ParserResult parseres;
GstMapInfo spsinfo;
@@ -457,6 +457,8 @@ _gst_mss_stream_add_h264_codec_data (GstCaps * caps, const gchar * codecdatastr)
nalu.offset = 0;
nalu.sc_offset = 0;
nalu.valid = TRUE;
+ nalu.header_bytes = 0;
+ nalu.extension_type = GST_H264_NAL_EXTENSION_NONE;
parseres = gst_h264_parse_sps (&nalu, &sps_struct, TRUE);
if (parseres == GST_H264_PARSER_OK) {