aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-01 23:32:45 +0000
committerGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-01 23:32:45 +0000
commit305d5c2e71027d2de0a6d8885cd9a83725b8b118 (patch)
treec8306a5eb9dd214106200b57b51563ea2370e1cb
parente1622e70c81211364ddb0dcb46f984f5977e51c4 (diff)
aspect ratio prescaling fixed for 0.0/1.0 cases
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2043 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--mplayer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mplayer.c b/mplayer.c
index 2d14ce0293..41c4c9153c 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1005,8 +1005,8 @@ current_module="init_libvo";
}
#endif
// Set default VGA 1:1 aspect as fallback ::atmos
- if(movie_aspect) sh_video->aspect = movie_aspect;
- if(!sh_video->aspect) sh_video->aspect=1.0;
+ if(movie_aspect) sh_video->aspect = movie_aspect; // cmdline overrides autodetect
+// if(!sh_video->aspect) sh_video->aspect=1.0;
if(screen_size_xy||screen_size_x||screen_size_y){
if(screen_size_xy>0){
@@ -1027,7 +1027,7 @@ current_module="init_libvo";
// check source format aspect, calculate prescale ::atmos
screen_size_x=sh_video->disp_w;
screen_size_y=sh_video->disp_h;
- if(sh_video->aspect!=1.0){
+ if(sh_video->aspect>0.01){
mp_msg(MSGT_CPLAYER,MSGL_INFO,"Movie-Aspect is %.2f:1 - prescaling to correct movie aspect.\n",
sh_video->aspect);
screen_size_x=(int)((float)sh_video->disp_h*sh_video->aspect);
@@ -1038,7 +1038,7 @@ current_module="init_libvo";
screen_size_y+=screen_size_y%2; // round
}
} else {
- mp_msg(MSGT_CPLAYER,MSGL_INFO,"Movie-Aspect is 1:1 - no prescaling applied.\n");
+ mp_msg(MSGT_CPLAYER,MSGL_INFO,"Movie-Aspect is undefined - no prescaling applied.\n");
}
}