[FFmpeg-devel] [PATCH] jpeg2000: use of lowres parameter from avcodec.h

Michael Niedermayer michaelni at gmx.at
Tue Apr 30 13:27:19 CEST 2013

On Tue, Apr 30, 2013 at 12:23:10PM +0200, Nicolas BERTRAND wrote:
> Le 30/04/2013 10:18, Michael Niedermayer a écrit :
> >jpeg2000dec reads & uses lowres before this code a change here will
> >cause the fields to be inconsistent
> >
> >Iam also not sure if changing lowres is in itself completely safe
> >though it works with both ffplay and ffmpeg.
> So there are a "simple" way to fix that?
> I can fix max_lowres to 6 (Upper level in JPEG200 Dcinema profile,
> but again specific)

the simple way is to print an error that the requested lowres level
isnt supported by the decoedr with "this file" and fail to decode the

the more complex one is to update lowres and all things that the
decoder did set based on the previous lowres value


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130430/d3fca51d/attachment.asc>

More information about the ffmpeg-devel mailing list