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

Nicolas BERTRAND nicoinattendu at gmail.com
Tue Apr 30 09:47:22 CEST 2013


Le 30/04/2013 02:07, Michael Niedermayer a écrit :
>> +    if (c->nreslevels < s->avctx->lowres)
>> >          c->nreslevels2decode = 1;
> Possibly independant of this patch but
> doesnt this make the variables inconsistent (and crash) ?
Yes,
When the lowres > number_or_resolution levels it crash.
I try to change lowres value buts change nothing (still crash)
/* compute number of resolution levels to decode */
     if (c->nreslevels <= s->avctx->lowres) {
         c->nreslevels2decode = 1;
         s->avctx->lowres = c->nreslevels - 1;
         }
     else
         c->nreslevels2decode = c->nreslevels - s->avctx->lowres;




More information about the ffmpeg-devel mailing list