changeset 31134:92755ba89e79

Ignore (but print out) offset with libtheora decoder. Patch by Giorgio Vazzana, mywing81 gmail
author cehoyos
date Sat, 22 May 2010 16:32:39 +0000
parents b26739603191
children 5a55c39743d1
files libmpcodecs/vd_theora.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_theora.c	Sat May 22 01:17:59 2010 +0000
+++ b/libmpcodecs/vd_theora.c	Sat May 22 16:32:39 2010 +0000
@@ -126,13 +126,14 @@
 
     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);