mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
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>
This commit is contained in:
parent
f8b1a70412
commit
06a66e7d94
@ -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++)
|
for (j = band_tab[i]; j < band_tab[i + 1]; j++)
|
||||||
chctx->sumLenArr[i] += chctx->CWlengthT[j];
|
chctx->sumLenArr[i] += chctx->CWlengthT[j];
|
||||||
if (chctx->bandFlagsBuf[i])
|
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;
|
chctx->skipFlagRaw[i] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ fate-dss-sp: CMD = framecrc -i $(TARGET_SAMPLES)/dss/sp.dss -frames 30
|
|||||||
FATE_SAMPLES_AUDIO-$(call DEMDEC, AVI, IMC) += fate-imc
|
FATE_SAMPLES_AUDIO-$(call DEMDEC, AVI, IMC) += fate-imc
|
||||||
fate-imc: CMD = pcm -i $(TARGET_SAMPLES)/imc/imc.avi
|
fate-imc: CMD = pcm -i $(TARGET_SAMPLES)/imc/imc.avi
|
||||||
fate-imc: CMP = oneoff
|
fate-imc: CMP = oneoff
|
||||||
fate-imc: REF = $(SAMPLES)/imc/imc.pcm
|
fate-imc: REF = $(SAMPLES)/imc/imc-201706.pcm
|
||||||
|
|
||||||
FATE_SAMPLES_AUDIO-$(call DEMDEC, FLV, NELLYMOSER) += fate-nellymoser
|
FATE_SAMPLES_AUDIO-$(call DEMDEC, FLV, NELLYMOSER) += fate-nellymoser
|
||||||
fate-nellymoser: CMD = pcm -i $(TARGET_SAMPLES)/nellymoser/nellymoser.flv
|
fate-nellymoser: CMD = pcm -i $(TARGET_SAMPLES)/nellymoser/nellymoser.flv
|
||||||
|
Loading…
Reference in New Issue
Block a user