changeset 3958:5e61815deced

last minute aspect patch by Panagiotis Issaris <takis@lumumba.luc.ac.be>
author arpi
date Wed, 02 Jan 2002 23:22:33 +0000
parents 49290522ab06
children 72d8a4d0de18
files libmpdemux/demux_nuv.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_nuv.c	Wed Jan 02 20:26:20 2002 +0000
+++ b/libmpdemux/demux_nuv.c	Wed Jan 02 23:22:33 2002 +0000
@@ -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;