On Mon, May 18, 2009 at 07:10:33PM +0200, spyfeng wrote:
> 
> Log:
> Implement new seek api for mpeg.c, just compile passed, need more test.
> 
> --- seek_api/mpeg.c   Sun May 17 15:15:04 2009        (r4278)
> +++ seek_api/mpeg.c   Mon May 18 19:10:33 2009        (r4279)
> @@ -597,6 +597,62 @@ static int64_t mpegps_read_dts(AVFormatC
>  
> +static int mpegps_read_seek(struct AVFormatContext *s, int stream_index,
> +                            int64_t min_ts, int64_t ts, int64_t max_ts, int 
> flags)

extra good karma for keeping lines below 80 characters where reasonably
possible.

> +        if (ie[index].timestamp >= min_ts && ie[index].timestamp <= max_ts){
> +
> +    for(;;){

Please consistently use K&R coding style, i.e. put a space between
if/for/while/switch and ( and a space between ) and {.

Diego
_______________________________________________
FFmpeg-soc mailing list
FFmpeg-soc@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to