Skip to contentSkip to conversation

gstreamer1.0-plugins-good: Fix qt with alac

PATCH scerveau 1 participant 1 message Mar 4, 2015

lore
Share & tools
lore

scerveau

author
#0 lore raw

Hello,

Here is a patch for alac encoding with qtmux.
Someone could be interested.

https://www.marc.info/?l=gstreamer-cvs&m=141954352317221&w=2

Best regards.

Stéphane

gst/isomp4/gstqtmux.c +2 -1
index fc747ed..6614ba4 100644
@@ -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);
     }