#11267 new defect

mxf_parse_jpeg2000_frame() checks for the incorrect number of components

Reported by: Pierre-Anthony Lemieux Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: j2k
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.