From 7bc56a77a9e4d24d0ea20af9a1c97d9a7a764232 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Tue, 16 Jun 2026 14:27:32 -0500 Subject: [PATCH] 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. --- video/out/bitmap_packer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);