mirror of
https://github.com/androidx/media.git
synced 2025-05-04 06:00:37 +08:00
Don't pass maxWidth/Height for non-video streams.
This is a no-op change for clarity only. maxWidth/maxHeight don't mean anything for AAC/MP3, so it makes sense to pass MediaFormat.NO_VALUE in all cases. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=111619832
This commit is contained in:
parent
651996983b
commit
00e903b32e
@ -355,11 +355,11 @@ public class HlsChunkSource {
|
||||
if (chunkUri.getLastPathSegment().endsWith(AAC_FILE_EXTENSION)) {
|
||||
Extractor extractor = new AdtsExtractor(startTimeUs);
|
||||
extractorWrapper = new HlsExtractorWrapper(trigger, format, startTimeUs, extractor,
|
||||
switchingVariantSpliced, adaptiveMaxWidth, adaptiveMaxHeight);
|
||||
switchingVariantSpliced, MediaFormat.NO_VALUE, MediaFormat.NO_VALUE);
|
||||
} else if (chunkUri.getLastPathSegment().endsWith(MP3_FILE_EXTENSION)) {
|
||||
Extractor extractor = new Mp3Extractor(startTimeUs);
|
||||
extractorWrapper = new HlsExtractorWrapper(trigger, format, startTimeUs, extractor,
|
||||
switchingVariantSpliced, adaptiveMaxWidth, adaptiveMaxHeight);
|
||||
switchingVariantSpliced, MediaFormat.NO_VALUE, MediaFormat.NO_VALUE);
|
||||
} else if (previousTsChunk == null
|
||||
|| previousTsChunk.discontinuitySequenceNumber != segment.discontinuitySequenceNumber
|
||||
|| !format.equals(previousTsChunk.format)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user