On Tue, Feb 28, 2012 at 11:30:26AM -0800, Ronald S. Bultje wrote: > From: "Ronald S. Bultje" <[email protected]> > > Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind > CC: [email protected] > --- > libavcodec/adpcm.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c > index bd86ab0..6dac075 100644 > --- a/libavcodec/adpcm.c > +++ b/libavcodec/adpcm.c > @@ -760,7 +760,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void > *data, > for (channel = 0; channel < avctx->channels; channel++) { > cs = &c->status[channel]; > cs->predictor = (int16_t)bytestream_get_le16(&src); > - cs->step_index = *src++; > + cs->step_index = av_clip(*src++, 0, 88); > src++; > } > > --
OK _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
