On Thu, Sep 08, 2011 at 05:38:37PM -0700, Alex Converse wrote:
> On Thu, Sep 8, 2011 at 4:05 PM, Laurent Aimar <fen...@elivagar.org> wrote:
> > @@ -172,10 +184,18 @@ static inline int get_bits_count(const GetBitContext 
> > *s){
> >
> >  static inline void skip_bits_long(GetBitContext *s, int n){
> >      s->index += n;
> > +#ifndef UNCHECK_BITSTREAM_READER
> > +    if (s->index > s->size_in_bits)
> > +        s->index = s->size_in_bits;
> > +#endif
> >  }
> >
> >  #elif defined A32_BITSTREAM_READER
> >
> > +#ifndef UNCHECK_BITSTREAM_READER
> > +#   warn "Checked bistream reader unimplemented"
> > +#endif
> > +
> >  #   define MIN_CACHE_BITS 32
> >
> >  #   define OPEN_READER(name, gb)                        \
> 
> Please use #warning instead of #warn, clang-2.9 and gcc-4.4 both
> happily accept #warning but barf on #warn

IIRC neither is standard C, so likely both should be avoided.

Diego
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to