1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-19 18:05:21 +00:00

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
This commit is contained in:
mosu 2003-05-06 15:28:01 +00:00
parent 4b244acded
commit cbd7618b8b

View File

@ -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;