1 /*
2 * SRTP network protocol
3 * Copyright (c) 2012 Martin Storsjo
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
26
30
39
40 #define D AV_OPT_FLAG_DECODING_PARAM
41 #define E AV_OPT_FLAG_ENCODING_PARAM
47 { NULL }
48 };
49
55 };
56
58 {
64 return 0;
65 }
66
68 {
70 char hostname[256],
buf[1024], path[1024];
72
75 goto fail;
78 goto fail;
79
80 av_url_split(NULL, 0, NULL, 0, hostname,
sizeof(hostname), &rtp_port,
81 path, sizeof(path), uri);
82 ff_url_join(buf,
sizeof(buf),
"rtp", NULL, hostname, rtp_port,
"%s", path);
84 goto fail;
85
89 return 0;
90
91 fail:
94 }
95
97 {
105 }
107 }
108
110 {
112 if (!s->srtp_out.aes)
116 if (size < 0)
119 }
120
122 {
125 }
126
128 int *numhandles)
129 {
132 }
133
143 .priv_data_class = &srtp_context_class,
145 };