summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2021-01-15 20:54:56 +1100
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-08-23 04:17:36 +0000
commitd806486503c50b40b115b5340e633d7b228bf93f (patch)
tree84096cd89ddc99d476e23af61865162c20d05455
parent467829358c1f8361b843f8640b3d116fe04a672b (diff)
downloadgstreamer-plugins-good-d806486503c50b40b115b5340e633d7b228bf93f.tar.gz
isomp4: fix trun data offset handling
The trun offset was missing a calculation for one of the box type headers. Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/866 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1060>
-rw-r--r--gst/isomp4/gstqtmux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c
index 4fd6c6291..01e510199 100644
--- a/gst/isomp4/gstqtmux.c
+++ b/gst/isomp4/gstqtmux.c
@@ -4415,10 +4415,10 @@ flush:
/* takes ownership */
atom_moof_add_traf (moof, pad->traf);
/* write the offset into the first 'trun'. All other truns are assumed
- * to follow on from this trun. skip over the mdat header (+8) */
+ * to follow on from this trun. Skip over the mdat header (+12) */
atom_moof_copy_data (moof, &data, &size, &offset);
first_trun = (AtomTRUN *) pad->traf->truns->data;
- atom_trun_set_offset (first_trun, size + 8);
+ atom_trun_set_offset (first_trun, offset + 12);
pad->traf = NULL;
size = offset = 0;
atom_moof_copy_data (moof, &data, &size, &offset);