Commit 97773f25 authored by Tristan Matthews's avatar Tristan Matthews

vpx: default fmt_out aspect ratio to 1:1 if unset

Fixes transcoding issues
parent 7da5d53a
......@@ -163,6 +163,15 @@ static picture_t *Decode(decoder_t *dec, block_t **pp_block)
v->i_visible_height = img->d_h;
}
if( !dec->fmt_in.video.i_sar_num || !dec->fmt_in.video.i_sar_den )
{
if( !dec->fmt_out.video.i_sar_num || !dec->fmt_out.video.i_sar_den )
{
dec->fmt_out.video.i_sar_num = 1;
dec->fmt_out.video.i_sar_den = 1;
}
}
picture_t *pic = decoder_NewPicture(dec);
if (!pic)
return NULL;
......
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