1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-15 11:31:02 +00:00

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
This commit is contained in:
cehoyos 2010-05-22 16:32:39 +00:00
parent 4e2622ed33
commit 1dce94a26d

View File

@ -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);