diff options
author | Jorge Zapata <jorgeluis.zapata@gmail.com> | 2013-01-23 16:19:07 +0100 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2013-05-22 14:41:21 +0200 |
commit | b06de2ff7cce88729d8360117e195b935981b421 (patch) | |
tree | d9bd746df8fb4b0c3eb334bc081021ab20164ef3 | |
parent | 372d10bc89e9fa2cc9865f3d4f2e3e7a10817f0f (diff) |
qtdemux: The data offset must start after the moof atom
Check that the data offset is after the moof node. If not, align
it to the end of the moof node.
-rw-r--r-- | gst/isomp4/qtdemux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index ccf0df35f..b469b9698 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -2355,6 +2355,8 @@ qtdemux_parse_trun (GstQTDemux * qtdemux, GstByteReader * trun, GST_LOG_OBJECT (qtdemux, "base_offset at moof"); *base_offset = moof_offset; } + if (data_offset < moof_length + 8) + data_offset = moof_length + 8; *running_offset = *base_offset + data_offset; } else { /* if no offset at all, that would mean data starts at moof start, |