mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-12 19:14:16 +00:00
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
This commit is contained in:
parent
c62209d050
commit
aa94fc6beb
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue