Browse Source

avformat/rtsp: check return value of ffurl_read_complete

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
tags/n4.4
Limin Wang 4 years ago
parent
commit
aa1fab6934
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/rtsp.c

+ 2
- 1
libavformat/rtsp.c View File

@@ -1220,7 +1220,8 @@ start:
content = av_malloc(content_length + 1);
if (!content)
return AVERROR(ENOMEM);
ffurl_read_complete(rt->rtsp_hd, content, content_length);
if (ffurl_read_complete(rt->rtsp_hd, content, content_length) != content_length)
return AVERROR(EIO);
content[content_length] = '\0';
}
if (content_ptr)


Loading…
Cancel
Save