aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/sonic.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-21 15:46:16 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-21 15:46:16 +0100
commit6ec037c5a9e1eac10d0683486801dfdfe9db5056 (patch)
treec73612d307983a7aa2733dcca8f75e79c25f9311 /libavcodec/sonic.c
parent1426291eb84c23eb0467c857397db8a76e77a003 (diff)
downloadffmpeg-6ec037c5a9e1eac10d0683486801dfdfe9db5056.tar.gz
sonicdec: fix frame size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/sonic.c')
-rw-r--r--libavcodec/sonic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c
index ae7ca4c2b9..a7e0a00b7c 100644
--- a/libavcodec/sonic.c
+++ b/libavcodec/sonic.c
@@ -880,7 +880,7 @@ static int sonic_decode_frame(AVCodecContext *avctx,
if (buf_size == 0) return 0;
- s->frame.nb_samples = s->frame_size;
+ s->frame.nb_samples = s->frame_size / avctx->channels;
if ((ret = ff_get_buffer(avctx, &s->frame, 0)) < 0)
return ret;
samples = (int16_t *)s->frame.data[0];