[MPlayer-cvslog] r21854 - trunk/stream/librtsp/rtsp_session.c

reimar subversion at mplayerhq.hu
Sun Jan 7 20:23:59 CET 2007


Author: reimar
Date: Sun Jan  7 20:23:59 2007
New Revision: 21854

Modified:
   trunk/stream/librtsp/rtsp_session.c

Log:
Make sure we do not crash when eof is reset, e.g. due to an attempt to seek.


Modified: trunk/stream/librtsp/rtsp_session.c
==============================================================================
--- trunk/stream/librtsp/rtsp_session.c	(original)
+++ trunk/stream/librtsp/rtsp_session.c	Sun Jan  7 20:23:59 2007
@@ -209,6 +209,7 @@
   int fill = this->real_session->recv_size - this->real_session->recv_read;
 
   if (len < 0) return 0;
+  if (this->real_session->recv_size < 0) return -1;
   while (to_copy > fill) {
     
     memcpy(dest, source, fill);



More information about the MPlayer-cvslog mailing list