Mercurial > libavformat.hg
changeset 4026:bd11db44dfba libavformat
Call check_back_and_send_rr() function only in case of RTP as a transport.
Don't call it for RDT, since it is unneeded and it doesn't provide a
RTPDemuxContext, leading to some memory errors. See "[PATCH] fix small
memory error in rtsp.c" thread on ML.
author | rbultje |
---|---|
date | Sat, 15 Nov 2008 14:44:48 +0000 |
parents | 4a266106f604 |
children | 11fbf47f3e16 |
files | rtsp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rtsp.c Sat Nov 15 02:22:47 2008 +0000 +++ b/rtsp.c Sat Nov 15 14:44:48 2008 +0000 @@ -1399,7 +1399,7 @@ case RTSP_LOWER_TRANSPORT_UDP: case RTSP_LOWER_TRANSPORT_UDP_MULTICAST: len = udp_read_packet(s, &rtsp_st, buf, sizeof(buf)); - if (len >=0 && rtsp_st->tx_ctx) + if (len >=0 && rtsp_st->tx_ctx && rt->transport == RTSP_TRANSPORT_RTP) rtp_check_and_send_back_rr(rtsp_st->tx_ctx, len); break; }