Commit 59b04df4 by Oliver Woodman

Fix incorrect max height calculation.

parent 6520557d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment