aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-16 00:44:54 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-16 00:44:54 +0100
commit21d25441c6eadda505aa2b7672d01a75d3b55160 (patch)
tree7c2c2bec1a5a5a774c9e4d890ad1c1eed56129ef
parent3e486162267f1de4447dc6e6bd45ac666647ba7e (diff)
downloadffmpeg-21d25441c6eadda505aa2b7672d01a75d3b55160.tar.gz
avcodec/dcadec: Only upsample as much data as is there
Found-by: carl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/dcadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index f8fa310c2f..1ba9863c62 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -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];
}