[FFmpeg-cvslog] r8886 - in trunk/libavcodec: vc1.h vc1_parser.c

Diego Biurrun diego
Fri May 4 14:40:04 CEST 2007


On Fri, May 04, 2007 at 02:31:40PM +0200, kostya wrote:
> 
> Log:
> 100l to myself. Do not include stuff unneeded by parser
> 
> --- trunk/libavcodec/vc1.h	(original)
> +++ trunk/libavcodec/vc1.h	Fri May  4 14:31:40 2007
> @@ -35,6 +35,7 @@ enum VC1Code{
>  
>  #define IS_MARKER(x) (((x) & ~0xFF) == VC1_CODE_RES0)
>  
> +#ifndef VC1_PARSER_ONLY
>  /** Available Profiles */
>  //@{
>  enum Profile {
> 
> --- trunk/libavcodec/vc1_parser.c	(original)
> +++ trunk/libavcodec/vc1_parser.c	Fri May  4 14:31:40 2007
> @@ -26,6 +26,7 @@
>  #include "dsputil.h"
>  #include "parser.h"
> +#define VC1_PARSER_ONLY
>  #include "vc1.h"

That's very ugly, why not simply move the enum Profile to vc1.c?  Is it
used in another place?

Diego




More information about the ffmpeg-cvslog mailing list