mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 02:42:21 +00:00
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:
parent
d2d08d706b
commit
2f41eaa9c6
@ -1808,7 +1808,8 @@ int ff_rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
rt->recvbuf_pos += ret;
|
rt->recvbuf_pos += ret;
|
||||||
ret = rt->recvbuf_pos < rt->recvbuf_len;
|
ret = rt->recvbuf_pos < rt->recvbuf_len;
|
||||||
}
|
}
|
||||||
}
|
} else
|
||||||
|
ret = -1;
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
rt->cur_transport_priv = NULL;
|
rt->cur_transport_priv = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user