Fix incorrect max height calculation.

This commit is contained in:
Oliver Woodman 2015-01-23 22:18:54 +00:00
parent 6520557dc0
commit 59b04df4c3

View file

@ -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;