vlc/vlc-3.0 | branch: master | Tristan Matthews <tma...@videolan.org> | Thu Jun 28 21:15:26 2018 -0400| [61dc5e559a7eb00be8f2a6d6e35675e7c7d06859] | committer: Francois Cartegnie
aom: decoder: update video resolution if it changes mid-stream Cherry-picked from 93a3f58b7afc4d3b4290b5f8fb1e4f6671c30ce6 (cherry picked from commit 18b909f4fb402302185487f191bea503b95f79ee) > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=61dc5e559a7eb00be8f2a6d6e35675e7c7d06859 --- modules/codec/aom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/codec/aom.c b/modules/codec/aom.c index 5cac4b1f45..f48e8c9fdd 100644 --- a/modules/codec/aom.c +++ b/modules/codec/aom.c @@ -173,8 +173,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 ) _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits