From da7e31a240f276836a0b90ca6c0714181b353cc4 Mon Sep 17 00:00:00 2001 From: Hugo Beauzée-Luyssen Date: Sun, 1 Feb 2015 19:19:46 +0100 Subject: rmdec: Check memory allocations from ff_rm_alloc_rmstream() Bug-Id: CID 1257835 --- libavformat/rdt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/rdt.c') 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); } } -- cgit v1.2.3