[vlc-devel] [PATCH] vpx: update video resolution if it changes mid-stream.
Ronald S. Bultje
rsbultje at gmail.com
Thu Feb 16 18:49:38 CET 2017
Fixes playback of e.g. vp90-2-05-resize.ivf in conformance collection.
---
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 )
--
2.8.1
More information about the vlc-devel
mailing list