Please separate the demux and codec, otherwise it is not possible to review even the demuxer. And frankly, you should need neither a codec nor a chroma conversion. We already have a libavcodec-based JPEG.2000 decoder, and better chroma conversions. -- 雷米‧德尼-库尔蒙 https://www.remlab.net/