[FFmpeg-trac] #10300(avcodec:new): JPEG2000 encoder produce corrupted output

FFmpeg trac at avcodec.org
Sun Apr 2 17:41:02 EEST 2023

#10300: JPEG2000 encoder produce corrupted output
             Reporter:  inganault  |                     Type:  defect
               Status:  new        |                 Priority:  normal
            Component:  avcodec    |                  Version:  git-master
             Keywords:  j2k        |               Blocked By:
             Blocking:             |  Reproduced by developer:  0
Analyzed by developer:  0          |
 The JPEG2000 encoder produce output image with apparent artifact for some
 input files.

 How to reproduce:
 ffmpeg -i corrupt_j2k.y4m test.jp2 && ffmpeg -i test.jp2 test.jpg
 The file corrupt_j2k.y4m (yuv420p) is attached.
 Converting the corrupt_j2k.y4m to yuv422p and yuv444p also trigger the

 What I have tried:
 ||= Encoder      =||= Commit            =||= Status   =||
 ||libopenjpeg     || b4eca5c (git-master) ||not affected||
 ||avcodec jpeg2000|| b4eca5c (git-master) ||affected    ||
 ||avcodec jpeg2000|| 341064d (libavcodec/jpeg2000: fix tag tree reset)
 ||affected    ||
 ||avcodec jpeg2000|| f0e3311 (libavcodec/j2kenc: Support for multiple
 layers) ||not affected||
Ticket URL: <https://trac.ffmpeg.org/ticket/10300>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list