bitmap_packer: return -1 instead of aborting on invalid bitmap size
All current callers of this already handle the -1 case like an error, so instead of killing everything just return -1.
This commit is contained in:
1 parent
688b2738c6
commit
7bc56a77a9
1 file changed
+1
-1
@@ -140,7 +140,7 @@ int packer_pack(struct bitmap_packer *packer)
|
||||
}
|
||||
if (in[i].x < 0 || in [i].x > 65535 || in[i].y < 0 || in[i].y > 65535) {
|
||||
fprintf(stderr, "Invalid OSD / subtitle bitmap size\n");
|
||||
abort();
|
||||
return -1;
|
||||
}
|
||||
xmax = MPMAX(xmax, in[i].x);
|
||||
ymax = MPMAX(ymax, in[i].y);
|
||||
|
||||
Reference in new issue
Block a user