Paul B Mahol <onemda <at> gmail.com> writes: > > Should I add the following in libopenjpeg_decode_frame()? > > avctx->bits_per_raw_sample = image->comps[0].prec; > > > > Nope, because there may be multiple comps, so you need to sum them all..... Looking at encode_init() in ffv1.c, this seems unlikely. Carl Eugen