mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue