diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-04-06 23:39:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-06 23:39:57 +0200 |
commit | 8bce71dff5a7fd2851c4718c274d8b2a94fb595c (patch) | |
tree | e9289d37fc3a9e5653adcb788935f6d21b20d6f4 | |
parent | 326dff7d054f260b11f51062c2d7fc9a537ff58c (diff) | |
download | ffmpeg-8bce71dff5a7fd2851c4718c274d8b2a94fb595c.tar.gz |
Check sizes a bit in ffplay, cant hurt.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffplay.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |