Commit 15da18d9 by Oliver Woodman

Fix format selection bug.

Issue: #825
parent 427cb34a
......@@ -125,7 +125,7 @@ public final class VideoFormatSelectorUtil {
// unnecessarily high resolution given the size at which the video will be displayed within the
// viewport.
for (int i = selectedIndexList.size() - 1; i >= 0; i--) {
Format format = formatWrappers.get(i).getFormat();
Format format = formatWrappers.get(selectedIndexList.get(i)).getFormat();
if (format.width > 0 && format.height > 0
&& format.width * format.height > maxVideoPixelsToRetain) {
selectedIndexList.remove(i);
......
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