[FFmpeg-cvslog] avcodec/ralf: add support for mono

Paul B Mahol git at videolan.org
Thu Apr 14 22:33:34 CEST 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Apr 14 22:31:57 2016 +0200| [9cd2ca9966d0f6c07192a01cbe6184bba0167d05] | committer: Paul B Mahol

avcodec/ralf: add support for mono

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9cd2ca9966d0f6c07192a01cbe6184bba0167d05
---

 libavcodec/ralf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/ralf.c b/libavcodec/ralf.c
index 8cd9f88..3f7953c 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 {



More information about the ffmpeg-cvslog mailing list