This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit cff9f29d5b566d607a880a0e0f2ce349ab07280e
Author:     Niklas Haas <[email protected]>
AuthorDate: Fri Feb 20 16:17:16 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Sat Feb 21 11:47:43 2026 +0000

    swscale/ops_optimizer: add sanity checks to scale->expand conversion
    
    This only works for integer types.
---
 libswscale/ops_optimizer.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libswscale/ops_optimizer.c b/libswscale/ops_optimizer.c
index c8713352a1..45ad3d4490 100644
--- a/libswscale/ops_optimizer.c
+++ b/libswscale/ops_optimizer.c
@@ -478,6 +478,8 @@ retry:
 
             /* Conversion followed by integer expansion */
             if (next->op == SWS_OP_SCALE && !op->convert.expand &&
+                ff_sws_pixel_type_is_int(op->type) &&
+                ff_sws_pixel_type_is_int(op->convert.to) &&
                 !av_cmp_q(next->c.q, ff_sws_pixel_expand(op->type, 
op->convert.to)))
             {
                 op->convert.expand = true;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to