# HG changeset patch # User nicodvb # Date 1188662179 0 # Node ID 4ad15f9bff3b0657018d6a13ef49d4f010b761dc # Parent 725638f690bb34113b538c64e68eaba609829d37 if the stream reader supports it assign to the video the stream aspect ratio diff -r 725638f690bb -r 4ad15f9bff3b mplayer.c --- a/mplayer.c Sat Sep 01 15:54:45 2007 +0000 +++ b/mplayer.c Sat Sep 01 15:56:19 2007 +0000 @@ -3067,6 +3067,7 @@ if(mpctx->sh_video){ + double ar=-1.0; current_module="video_read_properties"; if(!video_read_properties(mpctx->sh_video)) { mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CannotReadVideoProperties); @@ -3088,6 +3089,8 @@ mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_FPSnotspecified); mpctx->sh_video=mpctx->d_video->sh=NULL; } + if(stream_control(mpctx->demuxer->stream, STREAM_CTRL_GET_ASPECT_RATIO, &ar) != STREAM_UNSUPPORTED) + mpctx->sh_video->stream_aspect = ar; } }