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

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

commit 4fe1afdcd4e3ceabd3886a4d8b87b99708262492
Author:     Leo Izen <[email protected]>
AuthorDate: Sat Apr 4 12:09:13 2026 -0400
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 29 20:34:45 2026 +0100

    avcodec/libjxlenc: fix frame->linesize raw pointer read
    
    These should say frame->linesize[0] as it does everywhere else this
    variable is referenced. Fixes a typo bug.
    
    Signed-off-by: Leo Izen <[email protected]>
    (cherry picked from commit 739fc9249cf1587a3f5f50c16216272d9991a099)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/libjxlenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/libjxlenc.c b/libavcodec/libjxlenc.c
index 228a8eb6ac..a9eb1ffe10 100644
--- a/libavcodec/libjxlenc.c
+++ b/libavcodec/libjxlenc.c
@@ -456,7 +456,7 @@ static int libjxl_preprocess_stream(AVCodecContext *avctx, 
const AVFrame *frame,
 
     /* av_display_matrix_flip is a right-multipilcation */
     /* i.e. flip is applied before the previous matrix */
-    if (frame->linesize < 0)
+    if (frame->linesize[0] < 0)
         av_display_matrix_flip(matrix, 0, 1);
 
     orientation = av_exif_matrix_to_orientation(matrix);
@@ -469,7 +469,7 @@ static int libjxl_preprocess_stream(AVCodecContext *avctx, 
const AVFrame *frame,
     }
 
     /* restore the previous value */
-    if (frame->linesize < 0)
+    if (frame->linesize[0] < 0)
         av_display_matrix_flip(matrix, 0, 1);
 
     if (animated) {

-- 
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]

Reply via email to