Commit 8bce71df authored by Michael Niedermayer's avatar Michael Niedermayer

Check sizes a bit in ffplay, cant hurt.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 326dff7d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment