Commit 2f41eaa9 authored by Martin Storsjö's avatar Martin Storsjö

rtsp: Make sure the ret variable is initialized in ff_rtsp_fetch_packet

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent d2d08d70
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment