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

Michael Niedermayer michaelni
Tue May 4 17:09:34 CEST 2010


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

[...]
-- 
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100504/c0b6b1a8/attachment.pgp>



More information about the ffmpeg-devel mailing list