[FFmpeg-cvslog] rtsp: Make sure the ret variable is initialized in ff_rtsp_fetch_packet
Martin Storsjö
git at videolan.org
Sat Oct 20 12:43:18 CEST 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Oct 17 16:46:29 2012 +0300| [2f41eaa9c6b5699ed7c3c09b1a39b3322d8e7175] | committer: Martin Storsjö
rtsp: Make sure the ret variable is initialized in ff_rtsp_fetch_packet
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2f41eaa9c6b5699ed7c3c09b1a39b3322d8e7175
---
libavformat/rtsp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 160c0f7..bbe08e6 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1808,7 +1808,8 @@ int ff_rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt)
rt->recvbuf_pos += ret;
ret = rt->recvbuf_pos < rt->recvbuf_len;
}
- }
+ } else
+ ret = -1;
if (ret == 0) {
rt->cur_transport_priv = NULL;
return 0;
More information about the ffmpeg-cvslog
mailing list