[FFmpeg-cvslog] r15828 - trunk/libavformat/rtsp.c

rbultje subversion
Sat Nov 15 15:44:48 CET 2008


Author: rbultje
Date: Sat Nov 15 15:44:48 2008
New Revision: 15828

Log:
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.



Modified:
   trunk/libavformat/rtsp.c

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	(original)
+++ trunk/libavformat/rtsp.c	Sat Nov 15 15:44:48 2008
@@ -1399,7 +1399,7 @@ static int rtsp_read_packet(AVFormatCont
     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;
     }




More information about the ffmpeg-cvslog mailing list