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 d4648ae5275e4484a1964b1dfa98a9227fb50a79
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sat Apr 27 09:45:57 2024 +0200
Y4M loader: Fix frame size calculation for 10-bit 4:2:0 format
Seems to fix multiframe images (animation) for this format.
---
src/modules/loaders/loader_y4m.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/modules/loaders/loader_y4m.c b/src/modules/loaders/loader_y4m.c
index 9b7873a..22740b8 100644
--- a/src/modules/loaders/loader_y4m.c
+++ b/src/modules/loaders/loader_y4m.c
@@ -338,11 +338,15 @@ y4m_parse_frame(Y4mParse *res)
case Y4M_PARSE_CS_420MPEG2:
case Y4M_PARSE_CS_420PALDV:
case Y4M_PARSE_CS_420:
- case Y4M_PARSE_CS_420P10:
res->frame_data_len = npixels * 3 / 2;
sdiv = 2;
voff = (npixels * 5) / 4;
break;
+ case Y4M_PARSE_CS_420P10:
+ res->frame_data_len = npixels * 3;
+ sdiv = 2;
+ voff = (npixels * 5) / 4;
+ break;
case Y4M_PARSE_CS_422:
res->frame_data_len = npixels * 2;
sdiv = 2;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.