Skip to content

Commit

Permalink
avcodec/dcadec: Only upsample as much data as is there
Browse files Browse the repository at this point in the history
Found-by: carl
Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Mar 15, 2015
1 parent 3e48616 commit 21d2544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/dcadec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 21d2544

Please sign in to comment.