mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/dcadec: Only upsample as much data as is there
Found-by: carl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3e48616226
commit
21d25441c6
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue