History

rtpproto: Move rtpproto specific function declarations to a separate header

Mixing these with the rtp depacketizer functions in rtpdec.h is no good.

Martin Storsjö committed 13 years ago

Commit b7e6da91 parent 892b0be6 files · +36 −5Browse files

Unified · Split

6 files
  1. avserver.c +1 −0
  2. libavformat/rtpdec.h +0 −4
  3. libavformat/rtpproto.c +2 −1
  4. libavformat/rtpproto.h +31 −0
  5. libavformat/rtsp.c +1 −0
  6. libavformat/rtspdec.c +1 −0
avserver.c+1−0
@@ -32,6 +32,7 @@ · 31 unmodified lines
3232 #include "libavformat/network.h"
3333 #include "libavformat/os_support.h"
3434 #include "libavformat/rtpdec.h"
35+#include "libavformat/rtpproto.h"
3536 #include "libavformat/rtsp.h"
3637 #include "libavformat/avio_internal.h"
3738 #include "libavformat/internal.h"
libavformat/rtpdec.h+0−4
@@ -51,10 +51,6 @@ int ff_rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt, · 50 unmodified lines
5151 void ff_rtp_parse_close(RTPDemuxContext *s);
5252 int64_t ff_rtp_queued_packet_time(RTPDemuxContext *s);
5353 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);
5854
5955 /**
6056 * Send a dummy packet on both port pairs to set up the connection
libavformat/rtpproto.c+2−1
@@ -28,7 +28,8 @@ · 27 unmodified lines
2828 #include "libavutil/avstring.h"
2929 #include "avformat.h"
3030 #include "avio_internal.h"
31−#include "rtpdec.h"
31+#include "rtp.h"
32+#include "rtpproto.h"
3233 #include "url.h"
3334
3435 #include <stdarg.h>
libavformat/rtpproto.h+31−0
@@ -0,0 +1,31 @@
1+/*
2+ * RTP network protocol
3+ *
4+ * This file is part of Libav.
5+ *
6+ * Libav is free software; you can redistribute it and/or
7+ * modify it under the terms of the GNU Lesser General Public
8+ * License as published by the Free Software Foundation; either
9+ * version 2.1 of the License, or (at your option) any later version.
10+ *
11+ * Libav is distributed in the hope that it will be useful,
12+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+ * Lesser General Public License for more details.
15+ *
16+ * You should have received a copy of the GNU Lesser General Public
17+ * License along with Libav; if not, write to the Free Software
18+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19+ */
20+
21+#ifndef AVFORMAT_RTPPROTO_H
22+#define AVFORMAT_RTPPROTO_H
23+
24+#include "url.h"
25+
26+int ff_rtp_set_remote_url(URLContext *h, const char *uri);
27+
28+int ff_rtp_get_local_rtp_port(URLContext *h);
29+int ff_rtp_get_local_rtcp_port(URLContext *h);
30+
31+#endif /* AVFORMAT_RTPPROTO_H */
libavformat/rtsp.c+1−0
@@ -41,6 +41,7 @@ · 40 unmodified lines
4141 #include "rtsp.h"
4242
4343 #include "rtpdec.h"
44+#include "rtpproto.h"
4445 #include "rdt.h"
4546 #include "rtpdec_formats.h"
4647 #include "rtpenc_chain.h"
libavformat/rtspdec.c+1−0
@@ -29,6 +29,7 @@ · 28 unmodified lines
2929 #include "internal.h"
3030 #include "network.h"
3131 #include "os_support.h"
32+#include "rtpproto.h"
3233 #include "rtsp.h"
3334 #include "rdt.h"
3435 #include "url.h"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t