[FFmpeg-soc] [soc]: r4825 - in concat/libavformat: concat.c playlist.h

Diego Biurrun diego at biurrun.de
Wed Jul 29 08:39:44 CEST 2009


On Wed, Jul 29, 2009 at 05:06:53AM +0200, gkovacs wrote:
> 
> Log:
> added implicitly declared header, fixed wrong datatype declaration

Two separate issues should be fixed in two separate commits.

> --- concat/libavformat/concat.c	Wed Jul 29 04:48:38 2009	(r4824)
> +++ concat/libavformat/concat.c	Wed Jul 29 05:06:53 2009	(r4825)
> @@ -36,7 +36,7 @@ extern int ff_concatgen_read_packet(AVFo
>  
>  extern int ff_concatgen_read_seek(AVFormatContext *s, int stream_index, int64_t pts, int flags);
>  
> -extern int ff_concatgen_read_timestamp(AVFormatContext *s, int stream_index, int64_t *pos, int64_t pos_limit);
> +extern int64_t ff_concatgen_read_timestamp(AVFormatContext *s, int stream_index, int64_t *pos, int64_t pos_limit);
>  
>  extern int ff_concatgen_read_close(AVFormatContext *s);

All these local declarations are exceedingly ugly.  They should be in
some header file.  This would also have avoided the issue you just
fixed.

> --- concat/libavformat/playlist.h	Wed Jul 29 04:48:38 2009	(r4824)
> +++ concat/libavformat/playlist.h	Wed Jul 29 05:06:53 2009	(r4825)
> @@ -36,6 +36,7 @@
>  #include "avformat.h"
>  #include "riff.h"
>  #include <libgen.h>
> +#include <libavutil/avstring.h>

Use "" for local headers please.  Extra good karma for grouping system
headers before local headers.

Diego


More information about the FFmpeg-soc mailing list