mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/rtsp: check return value of ffurl_read_complete
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
001ccbc5cc
commit
aa1fab6934
@ -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…
Reference in New Issue
Block a user