[Mplayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.89,1.90
Moritz Bunkus CVS
mosu at mplayerhq.hu
Tue May 6 17:28:26 CEST 2003
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv20332
Modified Files:
vd_ffmpeg.c
Log Message:
Made the decoder honor the aspect ratio set by the container (if it was set at all).
Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -r1.89 -r1.90
--- vd_ffmpeg.c 26 Apr 2003 10:32:45 -0000 1.89
+++ vd_ffmpeg.c 6 May 2003 15:28:01 -0000 1.90
@@ -347,6 +347,7 @@
mp_msg(MSGT_DECVIDEO, MSGL_V, "[ffmpeg] aspect_ratio: %f\n", avctx->aspect_ratio);
ctx->last_aspect = avctx->aspect_ratio;
// if(ctx->last_aspect>=0.01 && ctx->last_aspect<100)
+ if(sh->aspect==0.0)
sh->aspect = ctx->last_aspect;
sh->disp_w = avctx->width;
sh->disp_h = avctx->height;
More information about the MPlayer-cvslog
mailing list