[Mplayer-cvslog] CVS: main mplayer.c,1.288,1.289

Arpi of Ize arpi at mplayer.dev.hu
Tue Oct 2 01:33:02 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv23544

Modified Files:
	mplayer.c 
Log Message:
aspect ratio prescaling fixed for 0.0/1.0 cases

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.288
retrieving revision 1.289
diff -u -r1.288 -r1.289
--- mplayer.c	1 Oct 2001 17:25:07 -0000	1.288
+++ mplayer.c	1 Oct 2001 23:32:45 -0000	1.289
@@ -1005,8 +1005,8 @@
    }
 #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 @@
     // 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 @@
         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");
     }
   }
 




More information about the MPlayer-cvslog mailing list