Mercurial > mplayer.hg
diff stream/librtsp/rtsp_session.c @ 21836:7c5e893dff54
Make sure we do not crash when eof is reset, e.g. due to an attempt to seek.
author | reimar |
---|---|
date | Sun, 07 Jan 2007 19:23:59 +0000 |
parents | b8f069b793c2 |
children | f0040ff1ba40 |
line wrap: on
line diff
--- a/stream/librtsp/rtsp_session.c Sun Jan 07 16:07:45 2007 +0000 +++ b/stream/librtsp/rtsp_session.c Sun Jan 07 19:23:59 2007 +0000 @@ -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);