Commit 93a3f58b authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Jean-Baptiste Kempf

vpx: update video resolution if it changes mid-stream.

Fixes playback of e.g. vp90-2-05-resize.ivf in conformance collection.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1a7fbb33
......@@ -216,8 +216,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 )
......
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