[FFmpeg-soc] [soc]: r4648 - concat/libavformat/pls.c

Diego Biurrun diego at biurrun.de
Tue Jul 7 10:32:41 CEST 2009


On Tue, Jul 07, 2009 at 03:41:48AM +0200, gkovacs wrote:
> 
> Log:
> reimplemented pls without datanode
> 
> --- concat/libavformat/pls.c	Tue Jul  7 03:05:04 2009	(r4647)
> +++ concat/libavformat/pls.c	Tue Jul  7 03:41:48 2009	(r4648)
> @@ -41,18 +40,55 @@ static int pls_probe(AVProbeData *p)
>  
> +        if (state == 0) {
> +        }
> +        else if (state == 1){

space between ) and {

> +            if (c == '=')
> +                state = 2;
> +            else if (c == '#')
> +                state = 0;
> +        }
> +        else {
> +            if (c == '\n' || c == '#') {
> +            }
> +            else {
> +            }
> +        }

Keeping the else on the same line as the closing { is preferred.

Diego


More information about the FFmpeg-soc mailing list