mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
Check sizes a bit in ffplay, cant hurt.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
3
ffplay.c
3
ffplay.c
@ -1582,6 +1582,9 @@ static int input_get_buffer(AVCodecContext *codec, AVFrame *pic)
|
|||||||
int i, w, h, stride[4];
|
int i, w, h, stride[4];
|
||||||
unsigned edge;
|
unsigned edge;
|
||||||
|
|
||||||
|
if(av_image_check_size(w, h, 0, codec))
|
||||||
|
return -1;
|
||||||
|
|
||||||
if (codec->codec->capabilities & CODEC_CAP_NEG_LINESIZES)
|
if (codec->codec->capabilities & CODEC_CAP_NEG_LINESIZES)
|
||||||
perms |= AV_PERM_NEG_LINESIZES;
|
perms |= AV_PERM_NEG_LINESIZES;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user