Skip to content
Snippets Groups Projects
Commit 18b909f4 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

aom: decoder: update video resolution if it changes mid-stream

Cherry-picked from 93a3f58b
parent ff5adfed
No related branches found
No related tags found
No related merge requests found
......@@ -201,8 +201,8 @@ static int Decode(decoder_t *dec, block_t *block)
video_format_t *v = &dec->fmt_out.video;
if (img->d_w != v->i_visible_width || img->d_h != v->i_visible_height) {
v->i_visible_width = img->d_w;
v->i_visible_height = img->d_h;
v->i_visible_width = dec->fmt_out.video.i_width = img->d_w;
v->i_visible_height = dec->fmt_out.video.i_height = img->d_h;
}
if( !dec->fmt_out.video.i_sar_num || !dec->fmt_out.video.i_sar_den )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment