add missing change after updating NPE

use +webm_opus instead of +opus
This commit is contained in:
kapodamy 2019-12-07 00:16:01 -03:00
parent 5a2cd93d13
commit 03939555ac
1 changed files with 3 additions and 1 deletions

View File

@ -52,10 +52,12 @@ public class SecondaryStreamHelper<T extends Stream> {
}
}
if (m4v) return null;
// retry, but this time in reverse order
for (int i = audioStreams.size() - 1; i >= 0; i--) {
AudioStream audio = audioStreams.get(i);
if (audio.getFormat() == (m4v ? MediaFormat.MP3 : MediaFormat.OPUS)) {
if (audio.getFormat() == MediaFormat.WEBMA_OPUS) {
return audio;
}
}