aboutsummaryrefslogtreecommitdiff
path: root/libavformat/rdt.c
diff options
context:
space:
mode:
authorHugo Beauzée-Luyssen2015-02-01 19:19:46 +0100
committerVittorio Giovara2015-02-17 12:16:43 -0500
commitda7e31a240f276836a0b90ca6c0714181b353cc4 (patch)
treea2acccb101b0a3008b97b3abd6ec38b5c8cee8df /libavformat/rdt.c
parentd89e58f53939d91a88aa7042c94d9d1cd364da52 (diff)
rmdec: Check memory allocations from ff_rm_alloc_rmstream()
Bug-Id: CID 1257835
Diffstat (limited to 'libavformat/rdt.c')
-rw-r--r--libavformat/rdt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rdt.c b/libavformat/rdt.c
index cc30694756..f2ec3e7563 100644
--- a/libavformat/rdt.c
+++ b/libavformat/rdt.c
@@ -434,6 +434,8 @@ rdt_parse_sdp_line (AVFormatContext *s, int st_index,
rdt->nb_rmst = count;
}
rdt->rmst[s->streams[n]->index] = ff_rm_alloc_rmstream();
+ if (!rdt->rmst[s->streams[n]->index])
+ return AVERROR(ENOMEM);
rdt_load_mdpr(rdt, s->streams[n], (n - first) * 2);
}
}