Commit 0c6b9b9f authored by Michael Niedermayer's avatar Michael Niedermayer

rtspdec:read_line: fix use of uninitialized byte

Fixes CID732301
Fixes CID723300
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1b5069aa
......@@ -76,8 +76,8 @@ static inline int read_line(AVFormatContext *s, char *rbuf, const int rbufsize,
do {
ret = ffurl_read_complete(rt->rtsp_hd, rbuf + idx, 1);
if (ret < 0)
return ret;
if (ret <= 0)
return ret ? ret : AVERROR_EOF;
if (rbuf[idx] == '\r') {
/* Ignore */
} else if (rbuf[idx] == '\n') {
......
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