X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Filbcdec.c;h=a82a27525c324a84da4a614004568df3190de513;hb=db99b32a1bfc35077933a068a09a1a8dc695644e;hp=bba83a589630fd3bc10a547a0a63fa324a610a79;hpb=fbd607dd560afe44c3b90de1e6cbe5265cac8f1e;p=ffmpeg diff --git a/libavcodec/ilbcdec.c b/libavcodec/ilbcdec.c index bba83a58963..a82a27525c3 100644 --- a/libavcodec/ilbcdec.c +++ b/libavcodec/ilbcdec.c @@ -724,7 +724,7 @@ static void construct_vector ( int16_t cbvec0[SUBL]; int16_t cbvec1[SUBL]; int16_t cbvec2[SUBL]; - int32_t a32; + unsigned a32; int16_t *gainPtr; int j; @@ -745,9 +745,9 @@ static void construct_vector ( for (j = 0; j < veclen; j++) { a32 = SPL_MUL_16_16(*gainPtr++, cbvec0[j]); a32 += SPL_MUL_16_16(*gainPtr++, cbvec1[j]); - a32 += (unsigned)SPL_MUL_16_16(*gainPtr, cbvec2[j]); + a32 += SPL_MUL_16_16(*gainPtr, cbvec2[j]); gainPtr -= 2; - decvector[j] = (a32 + 8192) >> 14; + decvector[j] = (int)(a32 + 8192) >> 14; } }