summaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-10-01 17:43:27 +0000
committerMartin Storsjö <martin@martin.st>2010-10-01 17:43:27 +0000
commitad4ad27fb6d352a874d97d42ba95ae0b5cbfa860 (patch)
tree3be53d41d26d0108c40ad39afc9425916139435b /libavformat/rtsp.c
parent96a7c9753e81ac1f2de12f3249ea7c001d50a3f7 (diff)
downloadffmpeg-streaming-ad4ad27fb6d352a874d97d42ba95ae0b5cbfa860.zip
ffmpeg-streaming-ad4ad27fb6d352a874d97d42ba95ae0b5cbfa860.tar.gz
rtsp/rtpdec: Allow rtp_parse_packet to take ownership of the packet buffer
Do the same change for ff_rdt_parse_packet, too, to keep the interfaces similar. Originally committed as revision 25289 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index be99587..b1ef46f 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1843,9 +1843,9 @@ static int rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt)
if (len == 0)
return AVERROR_EOF;
if (rt->transport == RTSP_TRANSPORT_RDT) {
- ret = ff_rdt_parse_packet(rtsp_st->transport_priv, pkt, rt->recvbuf, len);
+ ret = ff_rdt_parse_packet(rtsp_st->transport_priv, pkt, &rt->recvbuf, len);
} else {
- ret = rtp_parse_packet(rtsp_st->transport_priv, pkt, rt->recvbuf, len);
+ ret = rtp_parse_packet(rtsp_st->transport_priv, pkt, &rt->recvbuf, len);
if (ret < 0) {
/* Either bad packet, or a RTCP packet. Check if the
* first_rtcp_ntp_time field was initialized. */
OpenPOWER on IntegriCloud