libav will validate the height
This commit is contained in:
parent
d3e5a4ce84
commit
b36a7c31a8
|
@ -100,13 +100,13 @@ int mediatools_validate_video(AVFormatContext *format)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vpar->width < 1 || vpar->width > 16255) {
|
if (vpar->width < 1 || vpar->width > 32767) {
|
||||||
printf("Invalid width %d (must be 1..16255)\n", vpar->width);
|
printf("Invalid width %d\n", vpar->width);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vpar->height < 1 || vpar->height > 16255) {
|
if (vpar->height < 1 || vpar->height > 32767) {
|
||||||
printf("Invalid height %d (must be 1..16255)\n", vpar->height);
|
printf("Invalid height %d\n", vpar->height);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue