diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-07-16 22:18:12 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-07-17 06:58:37 +0200 |
commit | dfc2c4d900e48fa788ad9364ac408c01cfb62b94 (patch) | |
tree | eafdab4d3a81a427ddf30862f88af6a650eeaef0 /libavformat/avisynth.c | |
parent | 62709956677d648cbf340dccd4549fa62142cb7e (diff) | |
download | ffmpeg-dfc2c4d900e48fa788ad9364ac408c01cfb62b94.tar.gz |
lavf: use designated initialisers for all (de)muxers.
It's more readable and less prone to breakage.
Diffstat (limited to 'libavformat/avisynth.c')
-rw-r--r-- | libavformat/avisynth.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index 5e6f6bf5b9..b615796116 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -208,15 +208,12 @@ static int avisynth_read_seek(AVFormatContext *s, int stream_index, int64_t pts, } AVInputFormat ff_avisynth_demuxer = { - "avs", - NULL_IF_CONFIG_SMALL("AVISynth"), - sizeof(AVISynthContext), - NULL, - avisynth_read_header, - avisynth_read_packet, - avisynth_read_close, - avisynth_read_seek, - NULL, - 0, - "avs", + .name = "avs", + .long_name = NULL_IF_CONFIG_SMALL("AVISynth"), + .priv_data_size = sizeof(AVISynthContext), + .read_header = avisynth_read_header, + .read_packet = avisynth_read_packet, + .read_close = avisynth_read_close, + .read_seek = avisynth_read_seek, + .extensions = "avs", }; |