diff libmpcodecs/vd_ffmpeg.c @ 10080:312eb2923169

Made the decoder honor the aspect ratio set by the container (if it was set at all).
author mosu
date Tue, 06 May 2003 15:28:01 +0000
parents 8568ef7f6c2f
children 2002da982194
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Tue May 06 10:36:32 2003 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Tue May 06 15:28:01 2003 +0000
@@ -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;