1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-28 23:09:59 +02:00

* modules/codec/theora.c: correct encoding aspect ratio.

This commit is contained in:
Gildas Bazin 2004-07-01 10:35:48 +00:00
parent 7b55e81c45
commit 1aa3e5ac7d

View File

@ -217,7 +217,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
{
p_dec->fmt_out.video.i_aspect = ((int64_t)VOUT_ASPECT_FACTOR) *
( p_sys->ti.aspect_numerator * p_sys->ti.width ) /
( p_sys->ti.aspect_denominator * p_sys->ti_height );
( p_sys->ti.aspect_denominator * p_sys->ti.height );
}
else
{
@ -521,7 +521,8 @@ static int OpenEncoder( vlc_object_t *p_this )
if( p_enc->fmt_in.video.i_aspect )
{
p_sys->ti.aspect_numerator = p_enc->fmt_in.video.i_aspect;
p_sys->ti.aspect_numerator =
p_enc->fmt_in.video.i_aspect * p_sys->ti.height / p_sys->ti.width;
p_sys->ti.aspect_denominator = VOUT_ASPECT_FACTOR;
}
else