Commit 0b72a47f authored by Himangi Saraogi's avatar Himangi Saraogi Committed by Martin Storsjö

rtsp: Check a malloc return value

Signed-off-by: 's avatarMartin Storsjö <>
parent bbdb50d7
......@@ -2239,6 +2239,8 @@ static int sdp_read_header(AVFormatContext *s)
/* read the whole sdp file */
/* XXX: better loading */
content = av_malloc(SDP_MAX_SIZE);
if (!content)
size = avio_read(s->pb, content, SDP_MAX_SIZE - 1);
if (size <= 0) {
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