loosen minimum dimensions
This commit is contained in:
parent
845f64a3c7
commit
18401e684c
|
@ -45,7 +45,7 @@ int mediatools_validate_video(AVFormatContext *format)
|
||||||
if (strstr(iformat->name, "matroska")) {
|
if (strstr(iformat->name, "matroska")) {
|
||||||
switch (vpar->codec_id) {
|
switch (vpar->codec_id) {
|
||||||
default:
|
default:
|
||||||
printf("Bad video codec for WebM container (must be VP8, or VP9)\n");
|
printf("Bad video codec for WebM container (must be VP8 or VP9)\n");
|
||||||
return false;
|
return false;
|
||||||
case AV_CODEC_ID_VP8:
|
case AV_CODEC_ID_VP8:
|
||||||
case AV_CODEC_ID_VP9:
|
case AV_CODEC_ID_VP9:
|
||||||
|
@ -67,13 +67,13 @@ int mediatools_validate_video(AVFormatContext *format)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vpar->width < 32 || vpar->width > 4096) {
|
if (vpar->width < 2 || vpar->width > 4096) {
|
||||||
printf("Bad width %d (must be 32..4096)\n", vpar->width);
|
printf("Bad width %d (must be 2..4096)\n", vpar->width);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vpar->height < 32 || vpar->height > 4096) {
|
if (vpar->height < 2 || vpar->height > 4096) {
|
||||||
printf("Bad height %d (must be 32..4096)\n", vpar->height);
|
printf("Bad height %d (must be 2..4096)\n", vpar->height);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue