[FFmpeg-devel] [PATCH] remove pointless macro from libfaad.c

Francesco Cosoleto cosoleto
Tue Mar 3 19:31:26 CET 2009


2009/3/3 Diego Biurrun <diego at biurrun.de>:
> -#define AAC_CODEC(id, name, long_name_) \
> -AVCodec name ## _decoder = {    \
> -    #name,                      \
> -    CODEC_TYPE_AUDIO,           \
> -    id,                         \
> -    sizeof(FAACContext),        \
> -    faac_decode_init,           \
> -    NULL,                       \
> -    faac_decode_end,            \
> -    faac_decode_frame,          \
> -    .long_name = NULL_IF_CONFIG_SMALL(long_name_), \
> +AVCodec libfaad_decoder = {
> +    libfaad,
> +    CODEC_TYPE_AUDIO,
> +    CODEC_ID_AAC,
> +    sizeof(FAACContext),
> +    faac_decode_init,
> +    NULL,
> +    faac_decode_end,
> +    faac_decode_frame,
> +    .long_name = NULL_IF_CONFIG_SMALL("libfaad AAC (Advanced Audio Codec)"),
>  }
> -
> -// FIXME - raw AAC files - maybe just one entry will be enough
> -AAC_CODEC(CODEC_ID_AAC, libfaad, "libfaad AAC (Advanced Audio Codec)");
[...]

libfaad.c compilation is broken with this patch. "libfaad" should be
quoted and final semicolon is missing.




More information about the ffmpeg-devel mailing list