projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db17575
)
qtdemux: Increment current stts index whenever we finished one stts entry
author
Sebastian Dröge
<sebastian@centricular.com>
Thu, 19 Jan 2017 11:46:58 +0000
(13:46 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Thu, 19 Jan 2017 11:46:58 +0000
(13:46 +0200)
Otherwise we could read more chunks than there are available, doing an
out of bounds read and potentially crash.
https://bugzilla.gnome.org/show_bug.cgi?id=777469
gst/isomp4/qtdemux.c
patch
|
blob
|
history
diff --git
a/gst/isomp4/qtdemux.c
b/gst/isomp4/qtdemux.c
index
973af8f
..
5856450
100644
(file)
--- a/
gst/isomp4/qtdemux.c
+++ b/
gst/isomp4/qtdemux.c
@@
-8545,6
+8545,8
@@
done2:
/* save values */
stream->stts_time = stts_time;
stream->stts_sample_index = j + 1;
+ if (stream->stts_sample_index >= stream->stts_samples)
+ stream->stts_index++;
goto done3;
}
}