Commit 25b48ad9 authored by diego's avatar diego

Do not use a macro to generate a single AVCodec declaration.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17773 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f955bfed
...@@ -318,20 +318,14 @@ static av_cold int faac_decode_init(AVCodecContext *avctx) ...@@ -318,20 +318,14 @@ static av_cold int faac_decode_init(AVCodecContext *avctx)
return 0; return 0;
} }
#define AAC_CODEC(id, name, long_name_) \ AVCodec libfaad_decoder = {
AVCodec name ## _decoder = { \ libfaad,
#name, \ CODEC_TYPE_AUDIO,
CODEC_TYPE_AUDIO, \ CODEC_ID_AAC,
id, \ sizeof(FAACContext),
sizeof(FAACContext), \ faac_decode_init,
faac_decode_init, \ NULL,
NULL, \ faac_decode_end,
faac_decode_end, \ faac_decode_frame,
faac_decode_frame, \ .long_name = NULL_IF_CONFIG_SMALL("libfaad AAC (Advanced Audio Codec)"),
.long_name = NULL_IF_CONFIG_SMALL(long_name_), \
} }
// FIXME - raw AAC files - maybe just one entry will be enough
AAC_CODEC(CODEC_ID_AAC, libfaad, "libfaad AAC (Advanced Audio Codec)");
#undef AAC_CODEC
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment