summaryrefslogtreecommitdiff
path: root/gst/mpegtsdemux/mpegtspacketizer.c
diff options
context:
space:
mode:
authorFlorin Apostol <florin.apostol@oregan.net>2016-02-23 10:49:40 +0000
committerTim-Philipp Müller <tim@centricular.com>2016-04-06 14:17:57 +0100
commit3074fdf5ae174688a24b55888dabaff298b057af (patch)
tree53e185d263f34b76fadb371a9bb00f66b8f1f08b /gst/mpegtsdemux/mpegtspacketizer.c
parent3243c6a47e57b240a2cee39447188e249fb56947 (diff)
downloadgstreamer-plugins-bad-3074fdf5ae174688a24b55888dabaff298b057af.tar.gz
dashdemux: correctly handle an HTTP-XSDATE that is exactly the size of the date string
The code in the gst_dash_demux_parse_http_xsdate() was trying to handle the case where the string is not null terminated by resizing the buffer and appending a zero byte. This does not work if the buffer is exactly the length of the string because the gst_buffer_resize() function does not re-allocate the buffer, it just changes its size. If a buffer is passed to gst_dash_demux_parse_http_xsdate() that is exactly the length of the string, the function fails with an assert failure in gst_buffer_resize(). https://bugzilla.gnome.org/show_bug.cgi?id=762148
Diffstat (limited to 'gst/mpegtsdemux/mpegtspacketizer.c')
0 files changed, 0 insertions, 0 deletions