[FFmpeg-devel] [PATCH] fix Avidec.c to not use pkt->size when discard

Carl Eugen Hoyos cehoyos
Tue May 4 19:18:28 CEST 2010


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

> > --- libavformat/avidec.c	(revision 23014)
> > +++ libavformat/avidec.c	(working copy)
> > @@ -887,7 +887,7 @@
> >              if(   (st->discard >= AVDISCARD_DEFAULT && size==0)
> >                 /*|| (st->discard >= AVDISCARD_NONKEY && !(pkt->flags &
AV_PKT_FLAG_KEY))*/ //FIXME needs a little reordering
> >                 || st->discard >= AVDISCARD_ALL){
> > -                if(ast->sample_size) ast->frame_offset += pkt->size;
> > +                if(ast->sample_size) ast->frame_offset += size;
> 
> ok if regtests & fate still pass

Patch applied.

Carl Eugen




More information about the ffmpeg-devel mailing list