diff options
author | mosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-06 15:28:01 +0000 |
---|---|---|
committer | mosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-05-06 15:28:01 +0000 |
commit | cbd7618b8bff354234dd0a1648efba3e6fd78694 (patch) | |
tree | b91aea223d1c3026189812a7dcbda61c4ddc6f95 /libmpcodecs | |
parent | 4b244acded6afb7f766c30bfe59e6deedcd61a3c (diff) | |
download | mpv-cbd7618b8bff354234dd0a1648efba3e6fd78694.tar.bz2 mpv-cbd7618b8bff354234dd0a1648efba3e6fd78694.tar.xz |
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
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |