mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-24 09:00:31 +00:00
add missing change after updating NPE
use +webm_opus instead of +opus
This commit is contained in:
parent
5a2cd93d13
commit
03939555ac
@ -52,10 +52,12 @@ public class SecondaryStreamHelper<T extends Stream> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m4v) return null;
|
||||||
|
|
||||||
// retry, but this time in reverse order
|
// retry, but this time in reverse order
|
||||||
for (int i = audioStreams.size() - 1; i >= 0; i--) {
|
for (int i = audioStreams.size() - 1; i >= 0; i--) {
|
||||||
AudioStream audio = audioStreams.get(i);
|
AudioStream audio = audioStreams.get(i);
|
||||||
if (audio.getFormat() == (m4v ? MediaFormat.MP3 : MediaFormat.OPUS)) {
|
if (audio.getFormat() == MediaFormat.WEBMA_OPUS) {
|
||||||
return audio;
|
return audio;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user