/*****************************************************************************
* theora.c: theora decoder module making use of libtheora.
*****************************************************************************
- * Copyright (C) 1999-2001 VideoLAN
+ * Copyright (C) 1999-2001 the VideoLAN team
* $Id$
*
* Authors: Gildas Bazin <gbazin@videolan.org>
add_submodule();
set_description( _("Theora video encoder") );
- set_capability( "encoder", 100 );
+ set_capability( "encoder", 150 );
set_callbacks( OpenEncoder, CloseEncoder );
add_shortcut( "theora" );
if( p_enc->fmt_in.video.i_aspect )
{
- int64_t i_num, i_den;
- int i_dst_num, i_dst_den;
+ uint64_t i_num, i_den;
+ unsigned i_dst_num, i_dst_den;
i_num = p_enc->fmt_in.video.i_aspect * (int64_t)p_sys->ti.height;
i_den = VOUT_ASPECT_FACTOR * p_sys->ti.width;
- vlc_reduce( &i_dst_num, &i_dst_den, i_num, i_den, 0 );
+ vlc_ureduce( &i_dst_num, &i_dst_den, i_num, i_den, 0 );
p_sys->ti.aspect_numerator = i_dst_num;
p_sys->ti.aspect_denominator = i_dst_den;
}