[FFmpeg-devel] [PATCH] Seeking to beginning of avi file skips first audio packet

Carl Eugen Hoyos cehoyos
Mon May 17 01:52:45 CEST 2010


John Stebbins <stebbins <at> jetheaddev.com> writes:

> Index: libavformat/avidec.c
> ===================================================================
> --- ffmpeg.orig/libavformat/avidec.c	(revision 22950)
> +++ ffmpeg/libavformat/avidec.c	(working copy)

> +            }
> +            else {

Should be one line

> +                while(index>0 && st2->index_entries[index].pos > pos)
> +                    index--;
> +                while(index+1 < st2->nb_index_entries &&
st2->index_entries[index].pos < pos)
> +                    index++;

Please do not mix functional and cosmetic changes (= do not re-indent in your
patch).

Carl Eugen




More information about the ffmpeg-devel mailing list