Mercurial > mplayer.hg
changeset 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 | 5ee5281c78f8 |
children | 922c0072a2bf |
files | stream/librtsp/rtsp_session.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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);