mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02: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;
|
||||
ret = rt->recvbuf_pos < rt->recvbuf_len;
|
||||
}
|
||||
}
|
||||
} else
|
||||
ret = -1;
|
||||
if (ret == 0) {
|
||||
rt->cur_transport_priv = NULL;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user