#11267: mxf_parse_jpeg2000_frame() checks for the incorrect number of components
-------------------------------------+-------------------------------------
Reporter: Pierre- | Type: defect
Anthony Lemieux |
Status: new | Priority: important
Component: avcodec | Version: git-
| master
Keywords: j2k | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
mxf_parse_jpeg2000_frame() uses av_pix_fmt_count_planes() to determine the
number of components expects from the JPEG 2000 codestreams. This fails
for RGB, where the number of planes is 1 but the number of components is
3.
{{{
ffmpeg -i last.j2c -vcodec copy build/out.mxf
}}}
mxf_parse_jpeg2000_frame() should use
av_pix_fmt_desc_get(st->codecpar->format)->nb_components.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11267>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac
To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".