Florent Castelli 450b548cad Encode frames at the largest layer resolution instead of last layer
The current code assumes that layers are ordered from the smallest
to the largest.
If that assumption is broken and the last layer is smaller than the
others, all layers that are bigger will be scaled up.

Bug: webrtc:10069
Change-Id: Iff87ddba741d5dfe3d0cc25a8f75d898a417eec7
Reviewed-on: https://webrtc-review.googlesource.com/c/112460
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25878}
2018-12-03 14:07:14 +00:00
..
2018-07-17 14:46:15 +00:00
2018-07-23 15:28:48 +00:00
2018-10-11 08:18:08 +00:00