X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsdl%2Fconsumer_sdl.c;h=0d483cf4721ed9a2d2eac10c11cb49673d80bb1a;hb=980bd5cb1c17023459f0330397b817e18b9cb0c3;hp=72a9a90f561cefd0e0654dcf88cc42783aa46806;hpb=5d315fef65f55c968871c390ba762caa8a23cdc0;p=melted diff --git a/src/modules/sdl/consumer_sdl.c b/src/modules/sdl/consumer_sdl.c index 72a9a90..0d483cf 100644 --- a/src/modules/sdl/consumer_sdl.c +++ b/src/modules/sdl/consumer_sdl.c @@ -454,14 +454,14 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame ) this->rect.h = this->window_height; } // Use hardware scaler to normalise sample aspect ratio - else if ( this->window_height * frame_aspect > this->window_width ) + else if ( this->window_height * this->display_aspect > this->window_width ) { this->rect.w = this->window_width; - this->rect.h = this->window_width / frame_aspect + 0.5; + this->rect.h = this->window_width / this->display_aspect + 0.5; } else { - this->rect.w = this->window_height * frame_aspect + 0.5; + this->rect.w = this->window_height * this->display_aspect + 0.5; this->rect.h = this->window_height; }