From e411e5718e70f984696184faa73f1b504dc845af Mon Sep 17 00:00:00 2001 From: Francois Cartegnie Date: Thu, 29 Jun 2017 11:09:02 +0200 Subject: [PATCH] decoder: check visible size when creating buffer early reject invalid visible size mishandled by filters. refs #18467 Gbp-Pq: Name 0012-decoder-check-visible-size-when-creating-buffer.patch --- src/input/decoder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/decoder.c b/src/input/decoder.c index 9f7dc189..cfc15ed9 100644 --- a/src/input/decoder.c +++ b/src/input/decoder.c @@ -2060,7 +2060,9 @@ static picture_t *vout_new_buffer( decoder_t *p_dec ) vout_thread_t *p_vout; if( !p_dec->fmt_out.video.i_width || - !p_dec->fmt_out.video.i_height ) + !p_dec->fmt_out.video.i_height || + p_dec->fmt_out.video.i_width < p_dec->fmt_out.video.i_visible_width || + p_dec->fmt_out.video.i_height < p_dec->fmt_out.video.i_visible_height ) { /* Can't create a new vout without display size */ return NULL; -- 2.30.2