diff options
author | Michael Smith <msmith@rdio.com> | 2013-03-19 18:09:31 -0700 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2013-03-20 11:37:44 +0000 |
commit | ebd76bca54b798bdb0accdd2c90f051fb73270a3 (patch) | |
tree | bb7e52818d3d7e46cad1460162dc66c912665dc7 | |
parent | 6de6ea02452ec9007760bf9f037fac6dba7ea15a (diff) |
mp4mux: in faststart mode, don't output up to 4 kB of garbage at the end.
-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 b86a90c36..a030c1c7e 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; } |