Hi, On Sat, Jun 25, 2011 at 12:07 PM, İsmail Dönmez <[email protected]> wrote: > --- > libavcodec/mpc7.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/libavcodec/mpc7.c b/libavcodec/mpc7.c > index dbfa3c8..ec80a33 100644 > --- a/libavcodec/mpc7.c > +++ b/libavcodec/mpc7.c > @@ -200,7 +200,7 @@ static int mpc7_decode_frame(AVCodecContext * avctx, > int off; > int bits_used, bits_avail; > > - memset(bands, 0, sizeof(bands)); > + memset(bands, 0, sizeof(*bands)); > if(buf_size <= 4){ > av_log(avctx, AV_LOG_ERROR, "Too small buffer passed (%i bytes)\n", > buf_size); > }
This is as wrong as the original. This should be sizeof(*bands) * c->maxbands. Otherwise you merely zero the first entry. Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
