Issue #2602.
In case the video geometry (WxH) is larger than the current size of the framebuffer, match its size and let libav do the scaling. This enables the playback of 1080p movies on smaller screens. Issue #2583.
Enables also the use of the avresample library. Fixes #1910
Issue #1082