[FFmpeg-cvslog] libopenjpegdec.c: Correctly scale gray16 output if precision < 16

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Sep 12 22:56:09 CEST 2013


Clément Bœsch <u <at> pkh.me> writes:

> > +    adjust[x] = FFMAX(FFMIN(16 - image->comps[x].prec, 8), 0);
> 
> Any reason not to use av_clip()?

I suspect the line was simply copied from 
libopenjpeg_copy_to_packed16()

Carl Eugen



More information about the ffmpeg-cvslog mailing list