Skip to content

Commit

Permalink
Fallback to chunkful preparation if CODECS does not contain audio
Browse files Browse the repository at this point in the history
Issue: #10065

#minor-release

PiperOrigin-RevId: 438281023
  • Loading branch information
christosts authored and icbaker committed Apr 7, 2022
1 parent 5a43263 commit 8038a53
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -644,7 +644,8 @@ private void buildAndPrepareMainSampleStreamWrapper(
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
Expand Down

0 comments on commit 8038a53

Please sign in to comment.