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/wmadec.c | |
parent | 30b4ee7901ec5dbe24f1c75c0c0b43ba551c858b (diff) | |
download | ffmpeg-8671488799e7f03d7bc985099b73e18ea519ab39.tar.gz |
Use explicit struct initializers for AVCodec declarations.
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r-- | libavcodec/wmadec.c | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 479b34c3e0..389bf02931 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -916,30 +916,26 @@ static av_cold void flush(AVCodecContext *avctx) s->last_superframe_len= 0; } -AVCodec ff_wmav1_decoder = -{ - "wmav1", - AVMEDIA_TYPE_AUDIO, - CODEC_ID_WMAV1, - sizeof(WMACodecContext), - wma_decode_init, - NULL, - ff_wma_end, - wma_decode_superframe, - .flush=flush, - .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"), +AVCodec ff_wmav1_decoder = { + .name = "wmav1", + .type = AVMEDIA_TYPE_AUDIO, + .id = CODEC_ID_WMAV1, + .priv_data_size = sizeof(WMACodecContext), + .init = wma_decode_init, + .close = ff_wma_end, + .decode = wma_decode_superframe, + .flush = flush, + .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"), }; -AVCodec ff_wmav2_decoder = -{ - "wmav2", - AVMEDIA_TYPE_AUDIO, - CODEC_ID_WMAV2, - sizeof(WMACodecContext), - wma_decode_init, - NULL, - ff_wma_end, - wma_decode_superframe, - .flush=flush, - .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"), +AVCodec ff_wmav2_decoder = { + .name = "wmav2", + .type = AVMEDIA_TYPE_AUDIO, + .id = CODEC_ID_WMAV2, + .priv_data_size = sizeof(WMACodecContext), + .init = wma_decode_init, + .close = ff_wma_end, + .decode = wma_decode_superframe, + .flush = flush, + .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"), }; |