Commit c41dc236 by Dustin

Fix crash on streamId out of bounds

parent f1d007e6
......@@ -431,7 +431,7 @@ public class AviExtractor implements Extractor {
@Nullable
private AviTrack getAviTrack(int chunkId) {
final int streamId = getStreamId(chunkId);
if (streamId >= 0) {
if (streamId >= 0 && streamId < aviTracks.length) {
return aviTracks[streamId];
}
return null;
......
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 sign in to comment