Commit 8038a53a by christosts Committed by Ian Baker

Fallback to chunkful preparation if CODECS does not contain audio

Issue: google/ExoPlayer#10065

#minor-release

PiperOrigin-RevId: 438281023
parent 5a432637
......@@ -644,7 +644,8 @@ public final class HlsMediaPeriod
int numberOfVideoCodecs = Util.getCodecCountOfType(codecs, C.TRACK_TYPE_VIDEO);
int numberOfAudioCodecs = Util.getCodecCountOfType(codecs, C.TRACK_TYPE_AUDIO);
boolean codecsStringAllowsChunklessPreparation =
numberOfAudioCodecs <= 1
(numberOfAudioCodecs == 1
|| (numberOfAudioCodecs == 0 && multivariantPlaylist.audios.isEmpty()))
&& numberOfVideoCodecs <= 1
&& numberOfAudioCodecs + numberOfVideoCodecs > 0;
@C.TrackType
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment