[vlc-commits] vpx: update video resolution if it changes mid-stream.

Ronald S. Bultje git at videolan.org
Fri Feb 17 13:51:40 CET 2017


vlc | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Thu Feb 16 12:49:38 2017 -0500| [93a3f58b7afc4d3b4290b5f8fb1e4f6671c30ce6] | committer: 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 <jb at videolan.org>

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

 modules/codec/vpx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/vpx.c b/modules/codec/vpx.c
index d742d01..c1f3bf7 100644
--- a/modules/codec/vpx.c
+++ b/modules/codec/vpx.c
@@ -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 )



More information about the vlc-commits mailing list