Commit b691ddb6 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* set correct AR on theora video.

  this is also broken for encoding, but i'm not sure how to fix this.
parent 9a03d8fb
......@@ -214,11 +214,16 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_dec->fmt_out.video.i_height = p_sys->ti.height;
if( p_sys->ti.aspect_denominator && p_sys->ti.aspect_numerator )
{
p_dec->fmt_out.video.i_aspect = ((int64_t)VOUT_ASPECT_FACTOR) *
p_sys->ti.aspect_numerator / p_sys->ti.aspect_denominator;
( p_sys->ti.aspect_numerator * p_sys->ti.width ) /
( p_sys->ti.aspect_denominator * p_sys->ti_height );
}
else
{
p_dec->fmt_out.video.i_aspect = VOUT_ASPECT_FACTOR *
p_sys->ti.frame_width / p_sys->ti.frame_height;
}
msg_Dbg( p_dec, "%dx%d %.02f fps video, frame content "
"is %dx%d with offset (%d,%d).",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment