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

Git pushed a commit to branch release/4.4
in repository ffmpeg.

commit 503df884f2ac70ce0fe1c1a145560ee13d9d2e52
Author:     Carl Eugen Hoyos <[email protected]>
AuthorDate: Sun Jan 4 23:50:53 2026 +0300
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Tue May 5 18:54:57 2026 +0200

    lavc/j2kdec: Do not ignore colour association for packed formats
    
    Fixes ticket #9468.
    
    Signed-off-by: Carl Eugen Hoyos <[email protected]
    (cherry picked from commit aab0c23cb848b9db10aae9849505221ba7988776)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/jpeg2000dec.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index 2fe35530a6..0073f4b35d 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -2060,9 +2060,12 @@ static inline void 
tile_codeblocks(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile
             int h            = tile->comp[compno].coord[1][1] -                
                   \
                                ff_jpeg2000_ceildiv(s->image_offset_y, 
s->cdy[compno]);            \
             int plane        = 0;                                              
                   \
+            ptrdiff_t dstoffset = 0;                                           
                   \
                                                                                
                   \
             if (planar)                                                        
                   \
                 plane = s->cdef[compno] ? s->cdef[compno]-1 : 
(s->ncomponents-1);                 \
+            else                                                               
                   \
+                dstoffset = s->cdef[compno] ? s->cdef[compno] - 1 : compno;    
                   \
                                                                                
                   \
             y    = tile->comp[compno].coord[1][0] -                            
                   \
                    ff_jpeg2000_ceildiv(s->image_offset_y, s->cdy[compno]);     
                   \
@@ -2072,7 +2075,7 @@ static inline void tile_codeblocks(Jpeg2000DecoderContext 
*s, Jpeg2000Tile *tile
                                                                                
                   \
                 x   = tile->comp[compno].coord[0][0] -                         
                   \
                       ff_jpeg2000_ceildiv(s->image_offset_x, s->cdx[compno]);  
                   \
-                dst = line + x * pixelsize + compno*!planar;                   
                   \
+                dst = line + x * pixelsize + dstoffset;                        
                   \
                                                                                
                   \
                 if (codsty->transform == FF_DWT97) {                           
                   \
                     for (; x < w; x++) {                                       
                   \

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

Reply via email to