mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-04 05:57:49 +02:00
sws-test: check W/H
Fixes CID733834 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2c85727f6c
commit
c0f0bec2f2
@ -316,7 +316,8 @@ static int fileTest(uint8_t *ref[4], int refStride[4], int w, int h, FILE *fp,
|
|||||||
srcFormat = av_get_pix_fmt(srcStr);
|
srcFormat = av_get_pix_fmt(srcStr);
|
||||||
dstFormat = av_get_pix_fmt(dstStr);
|
dstFormat = av_get_pix_fmt(dstStr);
|
||||||
|
|
||||||
if (srcFormat == AV_PIX_FMT_NONE || dstFormat == AV_PIX_FMT_NONE) {
|
if (srcFormat == AV_PIX_FMT_NONE || dstFormat == AV_PIX_FMT_NONE ||
|
||||||
|
srcW > 1024U || srcH > 1024U || dstW > 1024U || dstH > 1024U) {
|
||||||
fprintf(stderr, "malformed input file\n");
|
fprintf(stderr, "malformed input file\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user