diff --git a/video/out/bitmap_packer.c b/video/out/bitmap_packer.c index c8b8a6a6bd..19beca68c1 100644 --- a/video/out/bitmap_packer.c +++ b/video/out/bitmap_packer.c @@ -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);