Commit 21d25441 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/dcadec: Only upsample as much data as is there

Found-by: carl
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3e486162
......@@ -1038,7 +1038,7 @@ static int dca_filter_channels(DCAContext *s, int block_index, int upsample)
unsigned i;
/* Should apply the filter in Table 6-11 when upsampling. For
* now, just duplicate. */
for (i = 511; i > 0; i--) {
for (i = 255; i > 0; i--) {
samples[2 * i] =
samples[2 * i + 1] = samples[i];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment