On Fri, Jul 17, 2015 at 12:46:25PM +0200, Carl Eugen Hoyos wrote: > Hi! > > Attached patch allows to signal lossless mode when decoding j2k. > > Please comment, Carl Eugen
> jpeg2000dec.c | 3 +++ > 1 file changed, 3 insertions(+) > 6a82e7f5e2e6448f69ff784461b4e3d84031fe10 patchj2klossless.diff > diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c > index 6e60c0a..53870f7 100644 > --- a/libavcodec/jpeg2000dec.c > +++ b/libavcodec/jpeg2000dec.c > @@ -469,6 +469,9 @@ static int get_cox(Jpeg2000DecoderContext *s, > Jpeg2000CodingStyle *c) > /* set integer 9/7 DWT in case of BITEXACT flag */ > if ((s->avctx->flags & CODEC_FLAG_BITEXACT) && (c->transform == > FF_DWT97)) > c->transform = FF_DWT97_INT; > + else if (c->transform == FF_DWT53) { > + s->avctx->properties |= FF_CODEC_PROPERTY_LOSSLESS; > + } LGTM thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB It is what and why we do it that matters, not just one of them.
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel