[SCM] libav/experimental: Use the output data type to determine the maximum number of samples that can be decoded.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:50:33 UTC 2013


The following commit has been merged in the experimental branch:
commit 5c3b5e3053d89365f08dbc7621a61d22edea9a49
Author: Justin Ruggles <justin.ruggles at gmail.com>
Date:   Fri Aug 28 00:57:00 2009 +0000

    Use the output data type to determine the maximum number of samples that can be
    decoded.
    
    Originally committed as revision 19736 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/libspeexdec.c b/libavcodec/libspeexdec.c
index 82b83b8..4241de2 100644
--- a/libavcodec/libspeexdec.c
+++ b/libavcodec/libspeexdec.c
@@ -101,7 +101,7 @@ static int libspeex_decode_frame(AVCodecContext *avctx,
     int i, num_samples;
 
     num_samples = s->header->frame_size * avctx->channels;
-    end = output + *data_size/2;
+    end = output + *data_size / sizeof(*output);
 
     speex_bits_read_from(&s->bits, buf, buf_size);
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list