From aa94fc6beb95ef6b811bec53696403fe47fa1f42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 25 Dec 2014 21:32:40 +0000 Subject: [PATCH] qtmux: fix ALAC muxing Actually copy the codec data instead of copying nothing and then bombing out because there's no data. Fixes: gst-launch-1.0 audiotestsrc ! avenc_alac ! qtmux ! fakesink https://bugzilla.gnome.org/show_bug.cgi?id=741783 --- gst/isomp4/gstqtmux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index fc747ed..6614ba4 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -2870,7 +2870,8 @@ gst_qt_mux_audio_sink_set_caps (GstQTPad * qtpad, GstCaps * caps) if (GST_READ_UINT32_LE (map.data + 4) == FOURCC_alac) { len -= 8; codec_config = - gst_buffer_copy_region ((GstBuffer *) codec_data, 0, 8, len); + gst_buffer_copy_region ((GstBuffer *) codec_data, + GST_BUFFER_COPY_MEMORY, 8, len); } else { codec_config = gst_buffer_ref ((GstBuffer *) codec_data); } -- 2.7.4