On Mon, Jul 13, 2020 at 10:50:02PM +0530, [email protected] wrote: > From: Gautam Ramakrishnan <[email protected]> > > This patch adds support for PPM marker for JPEG2000 > decoder. It allows the samples p1_03.j2k and p1_05.j2k > to be decoded. > --- > libavcodec/jpeg2000dec.c | 107 +++++++++++++++++++++++++++++++++++---- > 1 file changed, 97 insertions(+), 10 deletions(-) [...]
> @@ -2189,8 +2266,18 @@ static int
> jpeg2000_read_main_headers(Jpeg2000DecoderContext *s)
> // Packet length, tile-part header
> ret = get_plt(s, len);
> break;
> + case JPEG2000_PPM:
> + // Packed headers, main header
> + ret = get_ppm(s, len);
> + break;
> case JPEG2000_PPT:
> // Packed headers, tile-part header
> + if (s->has_ppm) {
> + av_log(s->avctx, AV_LOG_ERROR,
> + "Cannot have both PPT and PPM marker.\n");
> + return AVERROR_INVALIDDATA;
> + }
is a similar check needed before get_ppm() ?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
