mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix NPE in HLS deriveAudioFormat.
Issue:#5868 PiperOrigin-RevId: 247613811
This commit is contained in:
parent
95495328cf
commit
34dd4b1441
2 changed files with 4 additions and 2 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
### dev-v2 (not yet released) ###
|
### dev-v2 (not yet released) ###
|
||||||
|
|
||||||
|
* Fix NPE when using HLS chunkless preparation
|
||||||
|
([#5868](https://github.com/google/ExoPlayer/issues/5868)).
|
||||||
* Offline: Add option to remove all downloads.
|
* Offline: Add option to remove all downloads.
|
||||||
* Decoders:
|
* Decoders:
|
||||||
* Prefer codecs that advertise format support over ones that do not, even if
|
* Prefer codecs that advertise format support over ones that do not, even if
|
||||||
|
|
|
||||||
|
|
@ -802,7 +802,7 @@ public final class HlsMediaPeriod implements MediaPeriod, HlsSampleStreamWrapper
|
||||||
if (isPrimaryTrackInVariant) {
|
if (isPrimaryTrackInVariant) {
|
||||||
channelCount = variantFormat.channelCount;
|
channelCount = variantFormat.channelCount;
|
||||||
selectionFlags = variantFormat.selectionFlags;
|
selectionFlags = variantFormat.selectionFlags;
|
||||||
roleFlags = mediaTagFormat.roleFlags;
|
roleFlags = variantFormat.roleFlags;
|
||||||
language = variantFormat.language;
|
language = variantFormat.language;
|
||||||
label = variantFormat.label;
|
label = variantFormat.label;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue