diff options
author | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-05-22 16:32:39 +0000 |
---|---|---|
committer | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-05-22 16:32:39 +0000 |
commit | 1dce94a26d376f6781b9345d39169d8b6aaa4f0c (patch) | |
tree | a954d237daa7d155f74ae1e8d1fa7d9c26cd4954 /libmpcodecs | |
parent | 4e2622ed331c7d22e381992c8b73cc60ba58e90b (diff) |
Ignore (but print out) offset with libtheora decoder.
Patch by Giorgio Vazzana, mywing81 gmail
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31191 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vd_theora.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libmpcodecs/vd_theora.c b/libmpcodecs/vd_theora.c index cb9865b45e..c39e85bf1a 100644 --- a/libmpcodecs/vd_theora.c +++ b/libmpcodecs/vd_theora.c @@ -126,13 +126,14 @@ static int init(sh_video_t *sh){ if(sh->aspect==0.0 && context->inf.aspect_denominator!=0) { - sh->aspect = ((double)context->inf.aspect_numerator * context->inf.frame_width)/ - ((double)context->inf.aspect_denominator * context->inf.frame_height); + sh->aspect = ((double)context->inf.aspect_numerator * context->inf.width)/ + ((double)context->inf.aspect_denominator * context->inf.height); } mp_msg(MSGT_DECVIDEO,MSGL_V,"INFO: Theora video init ok!\n"); + mp_msg(MSGT_DECVIDEO,MSGL_INFO,"Frame: %dx%d, Picture %dx%d, Offset [%d,%d]\n", context->inf.width, context->inf.height, context->inf.frame_width, context->inf.frame_height, context->inf.offset_x, context->inf.offset_y); - return mpcodecs_config_vo (sh,context->inf.frame_width,context->inf.frame_height,theora_pixelformat2imgfmt(context->inf.pixelformat)); + return mpcodecs_config_vo (sh,context->inf.width,context->inf.height,theora_pixelformat2imgfmt(context->inf.pixelformat)); err_out: free(context); |