summaryrefslogtreecommitdiff
path: root/libavcodec/ralf.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-04-14 22:31:57 +0200
committerPaul B Mahol <onemda@gmail.com>2016-04-14 22:31:57 +0200
commit9cd2ca9966d0f6c07192a01cbe6184bba0167d05 (patch)
tree5aad8875a499045c5dc2e13f6eb0c6430fd9a1ee /libavcodec/ralf.c
parentc9fb81ff411ad1aa0f34dae553d05ff7c4644500 (diff)
downloadffmpeg-9cd2ca9966d0f6c07192a01cbe6184bba0167d05.tar.gz
avcodec/ralf: add support for mono
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/ralf.c')
-rw-r--r--libavcodec/ralf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ralf.c b/libavcodec/ralf.c
index 8cd9f88dc0..3f7953c6db 100644
--- a/libavcodec/ralf.c
+++ b/libavcodec/ralf.c
@@ -479,7 +479,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr,
init_get_bits(&gb, src + 2, table_size);
ctx->num_blocks = 0;
while (get_bits_left(&gb) > 0) {
- ctx->block_size[ctx->num_blocks] = get_bits(&gb, 15);
+ ctx->block_size[ctx->num_blocks] = get_bits(&gb, 13 + avctx->channels);
if (get_bits1(&gb)) {
ctx->block_pts[ctx->num_blocks] = get_bits(&gb, 9);
} else {