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
@ -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) {
|
if (GST_READ_UINT32_LE (map.data + 4) == FOURCC_alac) {
|
||||||
len -= 8;
|
len -= 8;
|
||||||
codec_config =
|
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 {
|
} else {
|
||||||
codec_config = gst_buffer_ref ((GstBuffer *) codec_data);
|
codec_config = gst_buffer_ref ((GstBuffer *) codec_data);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user