[FFmpeg-devel] [PATCH] imc: use correct position for flcoeffs2 calculation

2015-07-10 Thread Andreas Cadhalpun
flcoeffs2[pos] should be the log2 of flcoeffs1[pos]. flcoeffs1[0] can be 0 here, thus flcoeffs2[pos] gets set to -inf, causing problems further down. This seems to have been copied from imc_decode_level_coefficients in commit 4eb4bb3 without updating the position. Signed-off-by: Andreas

Re: [FFmpeg-devel] [PATCH] imc: use correct position for flcoeffs2 calculation

2015-07-10 Thread Andreas Cadhalpun
On 10.07.2015 23:16, Michael Niedermayer wrote: On Fri, Jul 10, 2015 at 09:59:32PM +0200, Andreas Cadhalpun wrote: flcoeffs2[pos] should be the log2 of flcoeffs1[pos]. flcoeffs1[0] can be 0 here, thus flcoeffs2[pos] gets set to -inf, causing problems further down. This seems to have been

Re: [FFmpeg-devel] [PATCH] imc: use correct position for flcoeffs2 calculation

2015-07-10 Thread Michael Niedermayer
On Fri, Jul 10, 2015 at 09:59:32PM +0200, Andreas Cadhalpun wrote: flcoeffs2[pos] should be the log2 of flcoeffs1[pos]. flcoeffs1[0] can be 0 here, thus flcoeffs2[pos] gets set to -inf, causing problems further down. This seems to have been copied from imc_decode_level_coefficients in