[FFmpeg-devel] AVC: Test if not consumed bytes are all 0

Carl Eugen Hoyos cehoyos
Sun Feb 15 14:19:27 CET 2009


Michael Niedermayer <michaelni <at> gmx.at> writes:

> > -            av_log(h->s.avctx, AV_LOG_ERROR, "AVC: Consumed only %d bytes
instead of %d\n", consumed, nalsize);
> > +            int i, debug_level = AV_LOG_DEBUG;
> > +            for (i = consumed; i < nalsize; i++)
> > +                if (buf[buf_index+i]){
> > +                    debug_level = AV_LOG_ERROR;
> > +                    break;
> > +                }
> > +            av_log(h->s.avctx, debug_level, "AVC: Consumed only %d bytes
instead of %d\n", consumed, nalsize);
> >              consumed= nalsize;
> >          }
> >  
> 
> ok without the unneeded "break"

Do you want me to keep "{" and "}"?

Carl Eugen






More information about the ffmpeg-devel mailing list