[vlc-commits] decoder: check visible size when creating buffer

Francois Cartegnie git at videolan.org
Thu Jun 29 11:14:02 CEST 2017


vlc/vlc-2.2 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jun 29 11:09:02 2017 +0200| [a38a85db58c569cc592d9380cc07096757ef3d49] | committer: Francois Cartegnie

decoder: check visible size when creating buffer

early reject invalid visible size
mishandled by filters.

refs #18467

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

 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 2c0823feb5..a216165272 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;



More information about the vlc-commits mailing list