[FFmpeg-cvslog] r16100 - in trunk/libavformat: allformats.c avio.h aviobuf.c

Måns Rullgård mans
Sat Dec 13 15:55:35 CET 2008


diego <subversion at mplayerhq.hu> writes:

> Author: diego
> Date: Sat Dec 13 14:39:13 2008
> New Revision: 16100
>
> Log:
> whitespace cosmetics
>
> Modified:
>    trunk/libavformat/allformats.c
>    trunk/libavformat/avio.h
>    trunk/libavformat/aviobuf.c
>
> Modified: trunk/libavformat/allformats.c
> ==============================================================================
> --- trunk/libavformat/allformats.c	(original)
> +++ trunk/libavformat/allformats.c	Sat Dec 13 14:39:13 2008
> @@ -22,16 +22,16 @@
>  #include "rtp_internal.h"
>  #include "rdt.h"
>
> -#define REGISTER_MUXER(X,x) { \
> -          extern AVOutputFormat x##_muxer; \
> -          if(ENABLE_##X##_MUXER)   av_register_output_format(&x##_muxer); }
> -#define REGISTER_DEMUXER(X,x) { \
> -          extern AVInputFormat x##_demuxer; \
> -          if(ENABLE_##X##_DEMUXER) av_register_input_format(&x##_demuxer); }
> +#define REGISTER_MUXER(X,x) { extern AVOutputFormat x##_muxer; \
> +    if(ENABLE_##X##_MUXER) av_register_output_format(&x##_muxer); }
> +
> +#define REGISTER_DEMUXER(X,x) { extern AVInputFormat x##_demuxer; \
> +    if(ENABLE_##X##_DEMUXER) av_register_input_format(&x##_demuxer); }
> +
>  #define REGISTER_MUXDEMUX(X,x)  REGISTER_MUXER(X,x); REGISTER_DEMUXER(X,x)
> -#define REGISTER_PROTOCOL(X,x) { \
> -          extern URLProtocol x##_protocol; \
> -          if(ENABLE_##X##_PROTOCOL) register_protocol(&x##_protocol); }
> +
> +#define REGISTER_PROTOCOL(X,x) { extern URLProtocol x##_protocol; \
> +    if(ENABLE_##X##_PROTOCOL) register_protocol(&x##_protocol); }

This looks hideous.  Why did you do that?

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-cvslog mailing list