[FFmpeg-devel] [PATCH] fix seeking and index generation

Baptiste Coudurier baptiste.coudurier
Fri Aug 13 22:58:45 CEST 2010


On Sun, Aug 08, 2010 at 09:00:25PM +0200, Michael Chinen wrote:
> On Sun, Aug 8, 2010 at 5:40 PM, Michael Chinen <mchinen at gmail.com> wrote:
> > Thanks. ?I found a much better way to fix this, but I'm having some
> > issues testing, and will submit a new patch tomorrow.
> 
> Here is an updated patch that is less destructive and passes all
> regression tests.
> 
> More investigation showed that av_find_stream_info wasn't setting the
> start offset correctly for the parser.

Can you clarify "start offset" ?
 

> @@ -1148,6 +1154,7 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
>              s->cur_st = st;
>              st->cur_ptr = st->cur_pkt.data;
>              st->cur_len = st->cur_pkt.size;
> +
>              if (st->need_parsing && !st->parser && !(s->flags & AVFMT_FLAG_NOPARSE)) {
>                  st->parser = av_parser_init(st->codec->codec_id);
>                  if (!st->parser) {

Cosmetics must be separated.

[...]

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list