[vlc-commits] aom: decoder: update video resolution if it changes mid-stream

Tristan Matthews git at videolan.org
Fri Jun 29 03:36:53 CEST 2018


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Thu Jun 28 21:15:26 2018 -0400| [18b909f4fb402302185487f191bea503b95f79ee] | committer: Tristan Matthews

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

Cherry-picked from 93a3f58b7afc4d3b4290b5f8fb1e4f6671c30ce6

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18b909f4fb402302185487f191bea503b95f79ee
---

 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 8f24864aa4..b64237e78e 100644
--- a/modules/codec/aom.c
+++ b/modules/codec/aom.c
@@ -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 )



More information about the vlc-commits mailing list