diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-04-08 07:41:47 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-08 11:08:26 +0200 |
commit | f35ff97f2e572a6b02180b248f929541962ffdd3 (patch) | |
tree | 7a3cdb327cfbc4236e5e4fec53377dbeca663e13 /libavformat/udp.c | |
parent | a6aa7a1a14dc12d9d745e5d4a8a7feb38eb1c4da (diff) | |
download | ffmpeg-f35ff97f2e572a6b02180b248f929541962ffdd3.tar.gz |
lavf: use designated initializers for all protocols
This is more readable and makes it easier to reorder URLProtocol
members.
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r-- | libavformat/udp.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c index 07d1775e96..b881ff95fd 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -489,11 +489,10 @@ static int udp_close(URLContext *h) } URLProtocol ff_udp_protocol = { - "udp", - udp_open, - udp_read, - udp_write, - NULL, /* seek */ - udp_close, + .name = "udp", + .url_open = udp_open, + .url_read = udp_read, + .url_write = udp_write, + .url_close = udp_close, .url_get_file_handle = udp_get_file_handle, }; |