Browse Source

shorten: use av_clip_int16() for output sample clipping

tags/n0.9
Justin Ruggles 14 years ago
parent
commit
bd7f7d6c78
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/shorten.c

+ 1
- 1
libavcodec/shorten.c View File

@@ -254,7 +254,7 @@ static int16_t * interleave_buffer(int16_t *samples, int nchan, int blocksize, i
int i, chan;
for (i=0; i<blocksize; i++)
for (chan=0; chan < nchan; chan++)
*samples++ = FFMIN(buffer[chan][i], 32768);
*samples++ = av_clip_int16(buffer[chan][i]);
return samples;
}



Loading…
Cancel
Save