[FFmpeg-cvslog] r20500 - trunk/libavcodec/libopenjpeg.c

Jai Menon jmenon86
Tue Nov 10 17:35:35 CET 2009


On Tue, Nov 10, 2009 at 04:37:34PM +0100, Reimar D?ffinger wrote:
> On Tue, Nov 10, 2009 at 03:48:32PM +0100, jai_menon wrote:
> > Author: jai_menon
> > Date: Tue Nov 10 15:48:32 2009
> > New Revision: 20500
> > 
> > Log:
> > Handle JPEG2000 frames stored in the Quicktime container.
> > Fixes issue 1525.
> > 
> > Modified:
> >    trunk/libavcodec/libopenjpeg.c
> > 
> > Modified: trunk/libavcodec/libopenjpeg.c
> > ==============================================================================
> > --- trunk/libavcodec/libopenjpeg.c	Tue Nov 10 15:37:42 2009	(r20499)
> > +++ trunk/libavcodec/libopenjpeg.c	Tue Nov 10 15:48:32 2009	(r20500)
> > @@ -80,6 +80,10 @@ static int libopenjpeg_decode_frame(AVCo
> >         (AV_RB32(buf + 8) == JP2_SIG_VALUE)) {
> >          dec = opj_create_decompress(CODEC_JP2);
> >      } else {
> > +        // If the AVPacket contains a jp2c box, then skip to
> > +        // the starting byte of the codestream.
> > +        if (AV_RB32(buf + 4) == AV_RB32("jp2c"))
> > +            buf += 8;
> >          dec = opj_create_decompress(CODEC_J2K);
> 
> What is the difference between jp2c and jp2 that the code just above
> handles?

A valid jp2 file consists of a signature, ftyp and jp2h atoms followed
by the jp2c atom.

-- 
Jai Menon




More information about the ffmpeg-cvslog mailing list