This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new f8bb61cd57 swscale/ops_dispatch: fix leak on ERANGE in compile_single()
f8bb61cd57 is described below
commit f8bb61cd57a714b4eb8a9f8002dbb5214eed48c7
Author: Sungjoon Moon <[email protected]>
AuthorDate: Thu Nov 12 13:53:45 2026 +0900
Commit: Ramiro Polla <[email protected]>
CommitDate: Fri Nov 13 18:04:41 2026 +0000
swscale/ops_dispatch: fix leak on ERANGE in compile_single()
Signed-off-by: Sungjoon Moon <[email protected]>
---
libswscale/ops_dispatch.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libswscale/ops_dispatch.c b/libswscale/ops_dispatch.c
index 129251daf1..3cfdb73f58 100644
--- a/libswscale/ops_dispatch.c
+++ b/libswscale/ops_dispatch.c
@@ -586,8 +586,10 @@ static int compile_single(const CompileArgs *args, const
SwsOpList *ops,
p->pixel_bits_out = rw_pixel_bits(write);
p->palette_idx = -1;
p->num_blocks = (dst->width + comp->block_size - 1) / comp->block_size;
- if (p->num_blocks * comp->block_size < (unsigned) dst->width)
- return AVERROR(ERANGE);
+ if (p->num_blocks * comp->block_size < (unsigned) dst->width) {
+ ret = AVERROR(ERANGE);
+ goto fail;
+ }
SwsOpExec *exec = &p->exec_base;
*exec = (SwsOpExec) {
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]