From b7c87430921baa35893912f547e2ffe8b392d7f9 Mon Sep 17 00:00:00 2001 From: arpi Date: Wed, 2 Jan 2002 23:22:33 +0000 Subject: last minute aspect patch by Panagiotis Issaris git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3959 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_nuv.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libmpdemux') diff --git a/libmpdemux/demux_nuv.c b/libmpdemux/demux_nuv.c index 527881b800..ebb678912d 100644 --- a/libmpdemux/demux_nuv.c +++ b/libmpdemux/demux_nuv.c @@ -120,7 +120,13 @@ demuxer_t* demux_open_nuv ( demuxer_t* demuxer ) 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; -- cgit v1.2.3