Commit 90244da7 authored by Edward Hervey's avatar Edward Hervey 🤘 Committed by Edward Hervey

qtmux: Read caption from input buffer

And not from unallocated output buffer GstMapInfo

CID #1435131
parent 7378f1b4
......@@ -939,8 +939,10 @@ gst_qt_mux_prepare_caption_buffer (GstQTPad * qtpad, GstBuffer * buf,
gsize cdat_size, cdt2_size, total_size = 0;
gsize write_offs = 0;
cdat_size = extract_608_field_from_cc_data (map.data, map.size, 1, &cdat);
cdt2_size = extract_608_field_from_cc_data (map.data, map.size, 2, &cdt2);
cdat_size =
extract_608_field_from_cc_data (inmap.data, inmap.size, 1, &cdat);
cdt2_size =
extract_608_field_from_cc_data (inmap.data, inmap.size, 2, &cdt2);
if (cdat_size)
total_size += cdat_size + 8;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment