From 4ef000bb347b114bd8d9f1ef5e1fa7741784fa1f Mon Sep 17 00:00:00 2001 From: Mahyar Koshkouei Date: Mon, 8 Jan 2018 19:29:20 +0000 Subject: [PATCH] Fix incorrect aspect ratio Fixed an issue whereby the video size reported by the container was used instead of the size after filters and the such were applied. Closes #10. Tested working with 16:9 and 5:4 videos. Signed-off-by: Mahyar Koshkouei --- mpv-libretro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mpv-libretro.c b/mpv-libretro.c index 48b8549..1937d43 100644 --- a/mpv-libretro.c +++ b/mpv-libretro.c @@ -399,8 +399,8 @@ void retro_run(void) if(updated_video_dimensions == false) { - mpv_get_property(mpv, "width", MPV_FORMAT_INT64, &width); - mpv_get_property(mpv, "height", MPV_FORMAT_INT64, &height); + mpv_get_property(mpv, "dwidth", MPV_FORMAT_INT64, &width); + mpv_get_property(mpv, "dheight", MPV_FORMAT_INT64, &height); struct retro_game_geometry geometry = { .base_width = width,