Permalink
Browse files

sonicdec: fix frame size

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information...
1 parent 1426291 commit 6ec037c5a9e1eac10d0683486801dfdfe9db5056 @michaelni michaelni committed Mar 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 libavcodec/sonic.c
View
@@ -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];

0 comments on commit 6ec037c

Please sign in to comment.