# HG changeset patch # User arpi # Date 1010013753 0 # Node ID 5e61815deced5e168047dcf38ef493c1d22448e1 # Parent 49290522ab064ee0f28586e5fc043c40d8937cf2 last minute aspect patch by Panagiotis Issaris diff -r 49290522ab06 -r 5e61815deced libmpdemux/demux_nuv.c --- 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;