Commit 1ffef8bf authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

qtdemux: Increment current stts index whenever we finished one stts entry

Otherwise we could read more chunks than there are available, doing an
out of bounds read and potentially crash.
parent db175750
......@@ -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)
goto done3;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment