mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Allow duplicate tracks in WebM/MKV extractor
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=145457836
This commit is contained in:
parent
c01c2c34f7
commit
0e99237075
1 changed files with 1 additions and 3 deletions
|
|
@ -529,11 +529,9 @@ public final class MatroskaExtractor implements Extractor {
|
|||
}
|
||||
break;
|
||||
case ID_TRACK_ENTRY:
|
||||
if (tracks.get(currentTrack.number) == null && isCodecSupported(currentTrack.codecId)) {
|
||||
if (isCodecSupported(currentTrack.codecId)) {
|
||||
currentTrack.initializeOutput(extractorOutput, currentTrack.number);
|
||||
tracks.put(currentTrack.number, currentTrack);
|
||||
} else {
|
||||
// We've seen this track entry before, or the codec is unsupported. Do nothing.
|
||||
}
|
||||
currentTrack = null;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue