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/rtpproto.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/rtpproto.c')
-rw-r--r-- | libavformat/rtpproto.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c index 5ac0e1b428..b92b2e7ace 100644 --- a/libavformat/rtpproto.c +++ b/libavformat/rtpproto.c @@ -355,11 +355,10 @@ int rtp_get_rtcp_file_handle(URLContext *h) { } URLProtocol ff_rtp_protocol = { - "rtp", - rtp_open, - rtp_read, - rtp_write, - NULL, /* seek */ - rtp_close, + .name = "rtp", + .url_open = rtp_open, + .url_read = rtp_read, + .url_write = rtp_write, + .url_close = rtp_close, .url_get_file_handle = rtp_get_file_handle, }; |