diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-09-23 23:11:15 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-09-24 14:11:19 +0400 |
commit | 8671488799e7f03d7bc985099b73e18ea519ab39 (patch) | |
tree | 921efdee5016bbe3e96f601bb20e9bad45e72e84 /libavcodec/adpcm.c | |
parent | 30b4ee7901ec5dbe24f1c75c0c0b43ba551c858b (diff) |
Use explicit struct initializers for AVCodec declarations.
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r-- | libavcodec/adpcm.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 3baa07b982..5e83e4b37a 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -1086,17 +1086,15 @@ static int adpcm_decode_frame(AVCodecContext *avctx, } -#define ADPCM_DECODER(id,name,long_name_) \ -AVCodec ff_ ## name ## _decoder = { \ - #name, \ - AVMEDIA_TYPE_AUDIO, \ - id, \ - sizeof(ADPCMDecodeContext), \ - adpcm_decode_init, \ - NULL, \ - NULL, \ - adpcm_decode_frame, \ - .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ +#define ADPCM_DECODER(id_, name_, long_name_) \ +AVCodec ff_ ## name_ ## _decoder = { \ + .name = #name_, \ + .type = AVMEDIA_TYPE_AUDIO, \ + .id = id_, \ + .priv_data_size = sizeof(ADPCMDecodeContext), \ + .init = adpcm_decode_init, \ + .decode = adpcm_decode_frame, \ + .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ } /* Note: Do not forget to add new entries to the Makefile as well. */ |