[Mplayer-cvslog] CVS: main/libmpdemux demux_nuv.c,1.2,1.3

Arpi of Ize arpi at mplayer.dev.hu
Thu Jan 3 00:22:36 CET 2002


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

Modified Files:
	demux_nuv.c 
Log Message:
last minute aspect patch by Panagiotis Issaris <takis at lumumba.luc.ac.be>

Index: demux_nuv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_nuv.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- demux_nuv.c	27 Dec 2001 23:07:30 -0000	1.2
+++ demux_nuv.c	2 Jan 2002 23:22:33 -0000	1.3
@@ -120,7 +120,13 @@
 	sh_video->disp_w = rtjpeg_fileheader.width;
 	sh_video->disp_h = rtjpeg_fileheader.height;
 
-	sh_video->aspect = (float)rtjpeg_fileheader.aspect;
+	/* NuppelVideo uses pixel aspect ratio
+           here display aspect ratio is used.
+	   For the moment NuppelVideo only supports 1.0 thus
+	   1.33 == 4:3 aspect ratio.   
+	*/
+	if(rtjpeg_fileheader.aspect == 1.0)
+		sh_video->aspect = (float) 1.33;
 
 	/* Get the FPS */
 	sh_video->fps = rtjpeg_fileheader.fps;




More information about the MPlayer-cvslog mailing list