From cbd7618b8bff354234dd0a1648efba3e6fd78694 Mon Sep 17 00:00:00 2001 From: mosu Date: Tue, 6 May 2003 15:28:01 +0000 Subject: Made the decoder honor the aspect ratio set by the container (if it was set at all). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10081 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 87f87263ee..61d08a12db 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -347,6 +347,7 @@ static int init_vo(sh_video_t *sh){ 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; -- cgit v1.2.3