mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Fix incorrect max height calculation.
This commit is contained in:
parent
6520557dc0
commit
59b04df4c3
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ public class HlsChunkSource {
|
|||
variantIndex = i;
|
||||
}
|
||||
maxWidth = Math.max(enabledVariants[i].width, maxWidth);
|
||||
maxHeight = Math.max(enabledVariants[i].width, maxHeight);
|
||||
maxHeight = Math.max(enabledVariants[i].height, maxHeight);
|
||||
}
|
||||
// TODO: We should allow the default values to be passed through the constructor.
|
||||
this.maxWidth = maxWidth > 0 ? maxWidth : 1920;
|
||||
|
|
|
|||
Loading…
Reference in a new issue