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 40ce1513c6 avcodec/mjpegdec: reject flipping of bayer images
40ce1513c6 is described below

commit 40ce1513c6a883bc2b96d33d968013b89dfe76af
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Jul 5 01:43:49 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Thu Jul 9 21:39:16 2026 +0000

    avcodec/mjpegdec: reject flipping of bayer images
    
    Fixes: assertion failure
    Fixes: 
523522308/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_DEC_fuzzer-4771843818192896
    Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/mjpegdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 0853d76372..d8430a260b 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -2750,7 +2750,7 @@ the_end:
             }
         }
     }
-    if (s->flipped && !s->rgb) {
+    if (s->flipped && !s->rgb && !s->bayer) {
         ret = av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt, &hshift, 
&vshift);
         if (ret)
             return ret;

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

Reply via email to