This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository legacy-imlib2.
View the commit online.
commit c08ae5fdfba2654254a6bc040475e236676bfcf9
Author: Chema Gonzalez <che...@meta.com>
AuthorDate: Wed Dec 27 15:09:17 2023 -0800
Y4M loader: fix C option analysis
ffmpeg has added multiple color space types that start with "420",
"422", and "444" (e.g. "420p16").
We cannot parse them as 8-bit color. Let's fail earier.
---
src/modules/loaders/loader_y4m.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/modules/loaders/loader_y4m.c b/src/modules/loaders/loader_y4m.c
index e859c31..336f1f9 100644
--- a/src/modules/loaders/loader_y4m.c
+++ b/src/modules/loaders/loader_y4m.c
@@ -196,11 +196,11 @@ y4m__parse_params(Y4mParse * res, const uint8_t ** start, const uint8_t * end)
res->colour_space = Y4M_PARSE_CS_420MPEG2;
else if (y4m__match("420paldv", 8, &p, end))
res->colour_space = Y4M_PARSE_CS_420PALDV;
- else if (y4m__match("420", 3, &p, end))
+ else if (y4m__match("420 ", 4, &p, end))
res->colour_space = Y4M_PARSE_CS_420;
- else if (y4m__match("422", 3, &p, end))
+ else if (y4m__match("422 ", 4, &p, end))
res->colour_space = Y4M_PARSE_CS_422;
- else if (y4m__match("444", 3, &p, end))
+ else if (y4m__match("444 ", 4, &p, end))
res->colour_space = Y4M_PARSE_CS_444;
else
return Y4M_PARSE_CORRUPTED;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.