diff options
author | Michael Smith <msmith@rdio.com> | 2013-03-19 18:09:31 -0700 |
---|---|---|
committer | Michael Smith <msmith@rdio.com> | 2013-03-19 18:09:31 -0700 |
commit | b85c5f236ba1df9621d93692523347f0719db337 (patch) | |
tree | 78ea6e6f646c7e1b0b5dd7cdaeff5ffa264069a8 /gst/isomp4/gstqtmux.c | |
parent | 5240b7453cd418ab8f124228eeaee2cfd29e3046 (diff) |
mp4mux: in faststart mode, don't output up to 4 kB of garbage at the end.
Diffstat (limited to 'gst/isomp4/gstqtmux.c')
-rw-r--r-- | gst/isomp4/gstqtmux.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index 940bb4807..b35aaecaf 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -1280,9 +1280,10 @@ gst_qt_mux_send_buffered_data (GstQTMux * qtmux, guint64 * offset) gst_buffer_unmap (buf, &map); break; } - GST_LOG_OBJECT (qtmux, "Pushing buffered buffer of size %d", - (gint) map.size); + GST_LOG_OBJECT (qtmux, "Pushing buffered buffer of size %d", (gint) size); gst_buffer_unmap (buf, &map); + if (size != bufsize) + gst_buffer_set_size (buf, size); ret = gst_qt_mux_send_buffer (qtmux, buf, offset, FALSE); buf = NULL; } |