summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-04-06 23:39:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-04-06 23:39:57 +0200
commit8bce71dff5a7fd2851c4718c274d8b2a94fb595c (patch)
treee9289d37fc3a9e5653adcb788935f6d21b20d6f4 /ffplay.c
parent326dff7d054f260b11f51062c2d7fc9a537ff58c (diff)
Check sizes a bit in ffplay, cant hurt.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index c44264ed4a..8c1ea31378 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;