[FFmpeg-cvslog] rtsp: Don't use uninitialized data if there are no streams
Martin Storsjö
git at videolan.org
Sun Apr 8 21:08:03 CEST 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Fri Apr 6 22:35:48 2012 +0300| [62c3c8ca78ee2da7dc20c2d6371866266c82966d] | committer: Martin Storsjö
rtsp: Don't use uninitialized data if there are no streams
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=62c3c8ca78ee2da7dc20c2d6371866266c82966d
---
libavformat/rtsp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 403f038..9ee7a75 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1391,7 +1391,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
goto fail;
}
- if (reply->timeout > 0)
+ if (rt->nb_rtsp_streams && reply->timeout > 0)
rt->timeout = reply->timeout;
if (rt->server_type == RTSP_SERVER_REAL)
More information about the ffmpeg-cvslog
mailing list