* commit 'b7e6da988bfd5def40ccf3476eb8ce2f98a969a5':
rtpproto: Move rtpproto specific function declarations to a separate header
Merged-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -36,6 +36,7 @@ |
36 | 36 |
#include "libavformat/network.h" |
37 | 37 |
#include "libavformat/os_support.h" |
38 | 38 |
#include "libavformat/rtpdec.h" |
39 |
+#include "libavformat/rtpproto.h" |
|
39 | 40 |
#include "libavformat/rtsp.h" |
40 | 41 |
#include "libavformat/avio_internal.h" |
41 | 42 |
#include "libavformat/internal.h" |
... | ... |
@@ -51,10 +51,6 @@ int ff_rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt, |
51 | 51 |
void ff_rtp_parse_close(RTPDemuxContext *s); |
52 | 52 |
int64_t ff_rtp_queued_packet_time(RTPDemuxContext *s); |
53 | 53 |
void ff_rtp_reset_packet_queue(RTPDemuxContext *s); |
54 |
-int ff_rtp_get_local_rtp_port(URLContext *h); |
|
55 |
-int ff_rtp_get_local_rtcp_port(URLContext *h); |
|
56 |
- |
|
57 |
-int ff_rtp_set_remote_url(URLContext *h, const char *uri); |
|
58 | 54 |
|
59 | 55 |
/** |
60 | 56 |
* Send a dummy packet on both port pairs to set up the connection |
35 | 36 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,31 @@ |
0 |
+/* |
|
1 |
+ * RTP network protocol |
|
2 |
+ * |
|
3 |
+ * This file is part of FFmpeg. |
|
4 |
+ * |
|
5 |
+ * FFmpeg is free software; you can redistribute it and/or |
|
6 |
+ * modify it under the terms of the GNU Lesser General Public |
|
7 |
+ * License as published by the Free Software Foundation; either |
|
8 |
+ * version 2.1 of the License, or (at your option) any later version. |
|
9 |
+ * |
|
10 |
+ * FFmpeg is distributed in the hope that it will be useful, |
|
11 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 |
+ * Lesser General Public License for more details. |
|
14 |
+ * |
|
15 |
+ * You should have received a copy of the GNU Lesser General Public |
|
16 |
+ * License along with FFmpeg; if not, write to the Free Software |
|
17 |
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
18 |
+ */ |
|
19 |
+ |
|
20 |
+#ifndef AVFORMAT_RTPPROTO_H |
|
21 |
+#define AVFORMAT_RTPPROTO_H |
|
22 |
+ |
|
23 |
+#include "url.h" |
|
24 |
+ |
|
25 |
+int ff_rtp_set_remote_url(URLContext *h, const char *uri); |
|
26 |
+ |
|
27 |
+int ff_rtp_get_local_rtp_port(URLContext *h); |
|
28 |
+int ff_rtp_get_local_rtcp_port(URLContext *h); |
|
29 |
+ |
|
30 |
+#endif /* AVFORMAT_RTPPROTO_H */ |