0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

Use aspect ratio from Theora context. Patch by j at v2v dot cc

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12762 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
mosu 2004-07-06 09:39:32 +00:00
parent acc4477cf3
commit d47f5c7bb3

View File

@ -102,6 +102,12 @@ static int init(sh_video_t *sh){
return 0;
}
if(sh->aspect==0.0 && context->inf.aspect_denominator!=0)
{
sh->aspect = (float)(context->inf.aspect_numerator * context->inf.width)/
(context->inf.aspect_denominator * context->inf.height);
}
mp_msg(MSGT_DECVIDEO,MSGL_V,"INFO: Theora video init ok!\n");
return mpcodecs_config_vo (sh,sh->disp_w,sh->disp_h,IMGFMT_YV12);