Revision 3d5e1bfb libavcodec/alacenc.c

View differences:

libavcodec/alacenc.c
253 253

  
254 254
            sum >>= lpc.lpc_quant;
255 255
            sum += samples[0];
256
            residual[i] = samples[lpc.lpc_order+1] - sum;
256
            residual[i] = (samples[lpc.lpc_order+1] - sum) << (32 - s->write_sample_size) >>
257
                          (32 - s->write_sample_size);
257 258
            res_val = residual[i];
258 259

  
259 260
            if(res_val) {

Also available in: Unified diff