rtsp: Make sure the ret variable is initialized in ff_rtsp_fetch_packet

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2012-10-17 16:46:29 +03:00
parent d2d08d706b
commit 2f41eaa9c6

View File

@ -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;