Turns out that this is a duplicate bug report (#173). The bug was reported
earlier (#124) by Shitiz and the patch for it has been uploaded at bugzilla
and sent to the ML.

On Sat, Dec 17, 2011 at 7:23 PM, Justin Ruggles <[email protected]>wrote:

> On 12/17/2011 06:12 AM, Gaurav Narula wrote:
>
> > ---
> >  libavcodec/adpcm.c |    5 +++++
> >  1 files changed, 5 insertions(+), 0 deletions(-)
> >
> > diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
> > index 3ada328..09fd373 100644
> > --- a/libavcodec/adpcm.c
> > +++ b/libavcodec/adpcm.c
> > @@ -340,6 +340,11 @@ static int get_nb_samples(AVCodecContext *avctx,
> const uint8_t *buf,
> >
> >      *coded_samples = 0;
> >
> > +    if (ch == 0) {
> > +        av_log(avctx,AV_LOG_ERROR,"Number of channels = 0\n");
> > +        return AVERROR_INVALIDDATA;
> > +    }
> > +
> >      switch (avctx->codec->id) {
> >      /* constant, only check buf_size */
> >      case CODEC_ID_ADPCM_EA_XAS:
>
>
> This needs to be checked in adpcm_decode_init(), where there is already
> a channels check that this condition can be added to.
>
> -Justin
>
> _______________________________________________
> libav-devel mailing list
> [email protected]
> https://lists.libav.org/mailman/listinfo/libav-devel
>
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to