[FFmpeg-devel] [PATCH 1/3] wavpack: report if there is no bits left

Michael Niedermayer michaelni at gmx.at
Tue Aug 19 18:00:29 CEST 2014


On Tue, Aug 19, 2014 at 02:50:58PM +0200, Paul B Mahol wrote:
> On 8/19/14, Christophe Gisquet <christophe.gisquet at gmail.com> wrote:
> > ---
> >  libavcodec/wavpack.c | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
> > index 7c60f78..9f72ebe 100644
> > --- a/libavcodec/wavpack.c
> > +++ b/libavcodec/wavpack.c
> > @@ -253,6 +253,10 @@ static int wv_get_value(WavpackFrameContext *ctx,
> > GetBitContext *gb,
> >      return sign ? ~ret : ret;
> >
> >  error:
> > +    ret = get_bits_left(gb);
> > +    if (ret <= 0) {
> > +        av_log(ctx->avctx, AV_LOG_ERROR, "Too few bits (%d) left\n", ret);
> > +    }
> >      *last = 1;
> >      return 0;
> >  }
> > --
> > 1.9.2.msysgit.0
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> 
> ok

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140819/34eacecd/attachment.asc>


More information about the ffmpeg-devel mailing list