Browse Source

rtspdec:read_line: fix use of uninitialized byte

Fixes CID732301
Fixes CID723300
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
0c6b9b9fe5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/rtspdec.c

+ 2
- 2
libavformat/rtspdec.c View File

@@ -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') {


Loading…
Cancel
Save