From 8bce71dff5a7fd2851c4718c274d8b2a94fb595c Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Wed, 6 Apr 2011 23:39:57 +0200
Subject: [PATCH] Check sizes a bit in ffplay, cant hurt. Signed-off-by:
 Michael Niedermayer <michaelni@gmx.at>

---
 ffplay.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ffplay.c b/ffplay.c
index c44264ed4a7..8c1ea313784 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1582,6 +1582,9 @@ static int input_get_buffer(AVCodecContext *codec, AVFrame *pic)
     int i, w, h, stride[4];
     unsigned edge;
 
+    if(av_image_check_size(w, h, 0, codec))
+        return -1;
+
     if (codec->codec->capabilities & CODEC_CAP_NEG_LINESIZES)
         perms |= AV_PERM_NEG_LINESIZES;
 
-- 
GitLab