summaryrefslogtreecommitdiffstats
path: root/demux/demux_mkv.c
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2013-07-16 17:52:57 +0200
committerAlexander Preisinger <alexander.preisinger@gmail.com>2013-07-16 19:13:29 +0200
commit6230e0b896f2f022a83f034e401d18c259f22012 (patch)
tree9c854c88cf164f5a7168682d2629cb560cf7ba78 /demux/demux_mkv.c
parentdc142991f12c379282d6c52e6d98333765767c3c (diff)
downloadmpv-6230e0b896f2f022a83f034e401d18c259f22012.tar.bz2
mpv-6230e0b896f2f022a83f034e401d18c259f22012.tar.xz
wayland: early aspect calculation in vo_config
Calculate the aspect ratio in vo_config, when we get the window size and in the inside the resize function we calculate the aspect ratio of the output in order to determine if we have to change the height or the width of the video. If the ratio of the output is bigger than the ratio of the video then we have to set the width accordingly and if the ratio is smaller we change the size. But only if no resize edges are passed, because this indicates that we want to change the windows state instead of just a simple resize and the video should not grow bigger than the requested size.
Diffstat (limited to 'demux/demux_mkv.c')
0 files changed, 0 insertions, 0 deletions