diff options
author | nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-10-28 23:06:35 +0000 |
---|---|---|
committer | nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-10-28 23:06:35 +0000 |
commit | 7bbf1acf5eafc072a573b5caea74be0d811801b1 (patch) | |
tree | 2d699eeb1d4a8c590e33a106bb0b513854245684 | |
parent | c09e15ebbc87459338d687880b8ccfe8e825c13c (diff) | |
download | mpv-7bbf1acf5eafc072a573b5caea74be0d811801b1.tar.bz2 mpv-7bbf1acf5eafc072a573b5caea74be0d811801b1.tar.xz |
get proper movie aspect
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13794 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_quartz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c index eaea285371..d069cddb85 100644 --- a/libvo/vo_quartz.c +++ b/libvo/vo_quartz.c @@ -581,12 +581,12 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32 aspect_save_orig(width,height); aspect_save_prescale(d_width,d_height); aspect_save_screenres(device_width, device_height); - - movie_aspect = (float)imgRect.right/(float)imgRect.bottom; - old_movie_aspect = movie_aspect; aspect(&d_width,&d_height,A_NOZOOM); + movie_aspect = (float)d_width/(float)d_height; + old_movie_aspect = movie_aspect; + if(image_data) free(image_data); |