summaryrefslogtreecommitdiff
path: root/libavcodec/mpc7.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2010-11-21 20:42:06 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2010-11-21 20:42:06 +0000
commit7d3829a87a7465f3effe8e0e09760882578e5a0a (patch)
treeff9437b356567089b0a5bbe3016629dfd163f10e /libavcodec/mpc7.c
parent63e8d9760f23a4edf81e9ae58c4f6d3baa6ff4dd (diff)
Musepack SV8 supports "mono" files (though it still codes them as stereo),
so extend decoder to output only one channel for it. This fixes issue 2368. Originally committed as revision 25790 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpc7.c')
-rw-r--r--libavcodec/mpc7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpc7.c b/libavcodec/mpc7.c
index c5b8d47c5e..5ac25797bb 100644
--- a/libavcodec/mpc7.c
+++ b/libavcodec/mpc7.c
@@ -260,7 +260,7 @@ static int mpc7_decode_frame(AVCodecContext * avctx,
for(ch = 0; ch < 2; ch++)
idx_to_quant(c, &gb, bands[i].res[ch], c->Q[ch] + off);
- ff_mpc_dequantize_and_synth(c, mb, data);
+ ff_mpc_dequantize_and_synth(c, mb, data, 2);
av_free(bits);