Allow duplicate tracks in WebM/MKV extractor

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=145457836
This commit is contained in:
zhihuichen 2017-01-24 13:14:46 -08:00 committed by Oliver Woodman
parent c01c2c34f7
commit 0e99237075

View file

@ -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;