diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2017-06-26 13:41:13 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-07-01 22:42:12 +0300 |
commit | 06a66e7d9496adde91a54f3641eec321a093e5a5 (patch) | |
tree | 5b6a61ce26de47e1cb1fa1a338aa0f54ed7a1007 /libavcodec/imc.c | |
parent | f8b1a70412b592dff774e306fd63963369ea6810 (diff) |
avcodec/imc: cast float to int prior to comparing with int variable
Update FATE test.
Fixes #3886.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/imc.c')
-rw-r--r-- | libavcodec/imc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imc.c b/libavcodec/imc.c index ac209206d1..7cd6db930b 100644 --- a/libavcodec/imc.c +++ b/libavcodec/imc.c @@ -828,7 +828,7 @@ static void imc_refine_bit_allocation(IMCContext *q, IMCChannel *chctx) for (j = band_tab[i]; j < band_tab[i + 1]; j++) chctx->sumLenArr[i] += chctx->CWlengthT[j]; if (chctx->bandFlagsBuf[i]) - if ((((band_tab[i + 1] - band_tab[i]) * 1.5) > chctx->sumLenArr[i]) && (chctx->sumLenArr[i] > 0)) + if (((int)((band_tab[i + 1] - band_tab[i]) * 1.5) > chctx->sumLenArr[i]) && (chctx->sumLenArr[i] > 0)) chctx->skipFlagRaw[i] = 1; } |