summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2021-08-06 22:55:32 +0200
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-08-20 00:16:43 +0000
commite069824c7de530f8095fedce0820e846c72d466b (patch)
tree9b7330e5dc8bd303968831f97691ce4a7ba9cef5
parent2c6be7373f3213ef90a858504e7b981e8f94908d (diff)
downloadgstreamer-plugins-good-e069824c7de530f8095fedce0820e846c72d466b.tar.gz
isomp4/atoms: fix multiple stsd entries
stsd entries are serialized in reverse order (starting from g_list_last()), and must be prepended to the entry list for their index to be correct when referenced from stsc entries. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1047>
-rw-r--r--gst/isomp4/atoms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/isomp4/atoms.c b/gst/isomp4/atoms.c
index 2935d5c75..7fd5a5224 100644
--- a/gst/isomp4/atoms.c
+++ b/gst/isomp4/atoms.c
@@ -4020,7 +4020,7 @@ atom_trak_add_video_entry (AtomTRAK * trak, AtomsContext * context,
mp4v->temporal_quality = 512;
}
- stsd->entries = g_list_append (stsd->entries, mp4v);
+ stsd->entries = g_list_prepend (stsd->entries, mp4v);
stsd->n_entries++;
return mp4v;
}