diff options
author | mosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-07-06 09:39:32 +0000 |
---|---|---|
committer | mosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-07-06 09:39:32 +0000 |
commit | d47f5c7bb339876d199c864b7baf448ff5407da0 (patch) | |
tree | 52d4ebdf602f22429c333a48d998f5ce13528d42 /libmpcodecs/vd_theora.c | |
parent | acc4477cf37bb2b46aae33d3d90335a763cea5b5 (diff) | |
download | mpv-d47f5c7bb339876d199c864b7baf448ff5407da0.tar.bz2 mpv-d47f5c7bb339876d199c864b7baf448ff5407da0.tar.xz |
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
Diffstat (limited to 'libmpcodecs/vd_theora.c')
-rw-r--r-- | libmpcodecs/vd_theora.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmpcodecs/vd_theora.c b/libmpcodecs/vd_theora.c index 1f12ca0fc0..a41e2b62ef 100644 --- a/libmpcodecs/vd_theora.c +++ b/libmpcodecs/vd_theora.c @@ -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); |