mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
qtmux: Write uint tags that don't have a complement
Write uint tags that have complements (e.g. track-number/ track-count) even when we only have one of them available and set the other one to 0. Fixes #622484
This commit is contained in:
parent
1e01bf6b20
commit
be3a4b7978
1 changed files with 4 additions and 4 deletions
|
@ -428,13 +428,13 @@ gst_qt_mux_add_mp4_tag (GstQTMux * qtmux, const GstTagList * list,
|
|||
}
|
||||
case G_TYPE_UINT:
|
||||
{
|
||||
guint value;
|
||||
guint value = 0;
|
||||
if (tag2) {
|
||||
/* paired unsigned integers */
|
||||
guint count;
|
||||
guint count = 0;
|
||||
|
||||
if (!gst_tag_list_get_uint (list, tag, &value) ||
|
||||
!gst_tag_list_get_uint (list, tag2, &count))
|
||||
if (!(gst_tag_list_get_uint (list, tag, &value) ||
|
||||
gst_tag_list_get_uint (list, tag2, &count)))
|
||||
break;
|
||||
GST_DEBUG_OBJECT (qtmux, "Adding tag %" GST_FOURCC_FORMAT " -> %u/%u",
|
||||
GST_FOURCC_ARGS (fourcc), value, count);
|
||||
|
|
Loading…
Reference in a new issue