summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-02 23:22:33 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-02 23:22:33 +0000
commitb7c87430921baa35893912f547e2ffe8b392d7f9 (patch)
treef4abdd8691caeec38653052412dd4922790c2d34
parentbfb6b8c076d46c4bcdad727995ffd162d4b9ec9a (diff)
downloadmpv-b7c87430921baa35893912f547e2ffe8b392d7f9.tar.bz2
mpv-b7c87430921baa35893912f547e2ffe8b392d7f9.tar.xz
last minute aspect patch by Panagiotis Issaris <takis@lumumba.luc.ac.be>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3959 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpdemux/demux_nuv.c8
1 files changed, 7 insertions, 1 deletions
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;