[FFmpeg-devel] [PATCH]Accept j2k colourspaces with 1-7 and 9-15 bpp
Reimar.Doeffinger at gmx.de
Fri May 11 19:57:16 CEST 2012
On Mon, May 07, 2012 at 11:19:11AM +0000, Carl Eugen Hoyos wrote:
> Paul B Mahol <onemda <at> gmail.com> writes:
> > > Should I add the following in libopenjpeg_decode_frame()?
> > > avctx->bits_per_raw_sample = image->comps.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.
Sorry for coming late. I agree that the sum makes no sense, though
I guess in theory it might be possible that the max over all
comp[i].prec would make more sense.
I have some doubts it's relevant in reality though.
More information about the ffmpeg-devel