Mercurial > mplayer.hg
changeset 12761:236b49c548a5
Use aspect ratio from Theora context. Patch by j at v2v dot cc
author | mosu |
---|---|
date | Tue, 06 Jul 2004 09:39:32 +0000 |
parents | 787a1ce375df |
children | cf8979836dc5 |
files | libmpcodecs/vd_theora.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_theora.c Tue Jul 06 02:10:22 2004 +0000 +++ b/libmpcodecs/vd_theora.c Tue Jul 06 09:39:32 2004 +0000 @@ -102,6 +102,12 @@ 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);