[FFmpeg-cvslog] avcodec/dcadec: Only upsample as much data as is there
Michael Niedermayer
git at videolan.org
Mon Mar 16 01:34:53 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 16 00:44:54 2015 +0100| [21d25441c6eadda505aa2b7672d01a75d3b55160] | committer: Michael Niedermayer
avcodec/dcadec: Only upsample as much data as is there
Found-by: carl
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=21d25441c6eadda505aa2b7672d01a75d3b55160
---
libavcodec/dcadec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index f8fa310..1ba9863 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];
}
More information about the ffmpeg-cvslog
mailing list