[FFmpeg-soc] [soc]: r4533 - seek_api/parser.c

Baptiste Coudurier baptiste.coudurier at gmail.com
Sun Jun 28 23:15:22 CEST 2009


spyfeng wrote:
> Author: spyfeng
> Date: Sat Jun 27 15:35:59 2009
> New Revision: 4533
> 
> Log:
> set correct pos when cannot get pos from ff_fetch_timestamp().
> 
> Modified:
>    seek_api/parser.c
> 
> Modified: seek_api/parser.c
> ==============================================================================
> --- seek_api/parser.c	Sat Jun 27 15:28:08 2009	(r4532)
> +++ seek_api/parser.c	Sat Jun 27 15:35:59 2009	(r4533)
> @@ -188,6 +188,8 @@ int av_parser_parse2(AVCodecParserContex
>      if (index < 0)
>          index = 0;
>      s->cur_offset += index;
> +    if (s->pos == -1)
> +        s->pos = s->last_pos + index;
>      return index;
>  }

Can you explain why this change is needed ? It seems wrong to me.

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


More information about the FFmpeg-soc mailing list