On Tue, Jun 16, 2015 at 05:28:14PM -0500, Rodger Combs wrote: > --- > libavcodec/adpcm.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c > index 22b5468..07ebce8 100644 > --- a/libavcodec/adpcm.c > +++ b/libavcodec/adpcm.c > @@ -637,7 +637,7 @@ static int get_nb_samples(AVCodecContext *avctx, > GetByteContext *gb, > } > case AV_CODEC_ID_ADPCM_THP: > if (avctx->extradata) { > - nb_samples = buf_size / (8 * ch) * 14; > + nb_samples = buf_size * 14 / (8 * ch);
doesnt this leave uninitialized samples at the end ? also theres a 2nd "buf_size / (8 * ch) * 14" a few lines later is that intended ? [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB DNS cache poisoning attacks, popular search engine, Google internet authority dont be evil, please
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel