diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c index bcb3469062..6cf15c5ae6 100644 --- a/libavcodec/snowdec.c +++ b/libavcodec/snowdec.c @@ -228,9 +228,9 @@ static void dequantize_slice_buffered(SnowContext *s, slice_buffer * sb, SubBand for(x=0; x>(QEXPSHIFT)); //FIXME try different bias + line[x]= -((-i*(unsigned)qmul + qadd)>>(QEXPSHIFT)); //FIXME try different bias }else if(i>0){ - line[x]= (( i*qmul + qadd)>>(QEXPSHIFT)); + line[x]= (( i*(unsigned)qmul + qadd)>>(QEXPSHIFT)); } } }