mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Fix crash on streamId out of bounds
This commit is contained in:
parent
f1d007e68c
commit
c41dc2360f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue