diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-09-23 21:11:15 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-09-24 12:11:19 +0200 |
commit | 8671488799e7f03d7bc985099b73e18ea519ab39 (patch) | |
tree | 921efdee5016bbe3e96f601bb20e9bad45e72e84 /libavcodec/dpcm.c | |
parent | 30b4ee7901ec5dbe24f1c75c0c0b43ba551c858b (diff) | |
download | ffmpeg-8671488799e7f03d7bc985099b73e18ea519ab39.tar.gz |
Use explicit struct initializers for AVCodec declarations.
Diffstat (limited to 'libavcodec/dpcm.c')
-rw-r--r-- | libavcodec/dpcm.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/libavcodec/dpcm.c b/libavcodec/dpcm.c index af5bf8abea..34c739a790 100644 --- a/libavcodec/dpcm.c +++ b/libavcodec/dpcm.c @@ -298,17 +298,15 @@ static int dpcm_decode_frame(AVCodecContext *avctx, return buf_size; } -#define DPCM_DECODER(id, name, long_name_) \ -AVCodec ff_ ## name ## _decoder = { \ - #name, \ - AVMEDIA_TYPE_AUDIO, \ - id, \ - sizeof(DPCMContext), \ - dpcm_decode_init, \ - NULL, \ - NULL, \ - dpcm_decode_frame, \ - .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ +#define DPCM_DECODER(id_, name_, long_name_) \ +AVCodec ff_ ## name_ ## _decoder = { \ + .name = #name_, \ + .type = AVMEDIA_TYPE_AUDIO, \ + .id = id_, \ + .priv_data_size = sizeof(DPCMContext), \ + .init = dpcm_decode_init, \ + .decode = dpcm_decode_frame, \ + .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ } DPCM_DECODER(CODEC_ID_INTERPLAY_DPCM, interplay_dpcm, "DPCM Interplay"); |