[FFmpeg-cvslog] r17956 - trunk/libavformat/utils.c

Baptiste Coudurier baptiste.coudurier
Sat Mar 14 22:06:17 CET 2009


Hi Michael,

On 3/14/2009 8:51 AM, michael wrote:
> Author: michael
> Date: Sat Mar 14 16:51:46 2009
> New Revision: 17956
> 
> Log:
> add avformat_seek_file()
> 
> Modified:
>    trunk/libavformat/utils.c
> 
> Modified: trunk/libavformat/utils.c
> ==============================================================================
> --- trunk/libavformat/utils.c	Sat Mar 14 11:18:18 2009	(r17955)
> +++ trunk/libavformat/utils.c	Sat Mar 14 16:51:46 2009	(r17956)
> @@ -1584,6 +1584,28 @@ int av_seek_frame(AVFormatContext *s, in
>          return av_seek_frame_generic(s, stream_index, timestamp, flags);
>  }
>  
> +int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
> +{
> +    if(min_ts > ts || max_ts < ts)
> +        return -1;
> +
> +    av_read_frame_flush(s);
> +

Thanks a lot for taking care of this.

I have a question, should we flush only if the seek has been sucessful ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer                                  http://www.ffmpeg.org




More information about the ffmpeg-cvslog mailing list