summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-10-17 16:46:29 +0300
committerMartin Storsjö <martin@martin.st>2012-10-20 01:59:06 +0300
commit2f41eaa9c6b5699ed7c3c09b1a39b3322d8e7175 (patch)
treebc127da8921b8e151617721cb6242315419d2460 /libavformat/rtsp.c
parentd2d08d706b8f4fa0043f0f9ee001e7de2588d486 (diff)
downloadffmpeg-2f41eaa9c6b5699ed7c3c09b1a39b3322d8e7175.tar.gz
rtsp: Make sure the ret variable is initialized in ff_rtsp_fetch_packet
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 160c0f7bbc..bbe08e686e 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;