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

Thierry Foucu tfoucu
Tue May 4 18:47:37 CEST 2010


On Tue, May 4, 2010 at 8:09 AM, Michael Niedermayer <michaelni at gmx.at>wrote:

> On Mon, May 03, 2010 at 02:01:49PM -0700, Thierry Foucu wrote:
> > On Mon, May 3, 2010 at 10:07 AM, Michael Niedermayer <michaelni at gmx.at
> >wrote:
> [...]
> > Index: libavformat/avidec.c
> > ===================================================================
> > --- 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;
> >                  else                 ast->frame_offset++;
> >                  url_fskip(pb, size);
> >                  goto resync;
>
> ok if regtests & fate still pass
>

I ran make fulltest and make fate and they all passes



>
> [...]
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> If you think the mosad wants you dead since a long time then you are either
> wrong or dead since a long time.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iD8DBQFL4DitYR7HhwQLD6sRAn0nAJsF5anWauxU8MTs6ih59dQZv968FQCfXM46
> zR427iTE98iDGi5kwhHlP58=
> =D0DA
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>



More information about the ffmpeg-devel mailing list