---
libavformat/rdt.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/rdt.c b/libavformat/rdt.c
index a8c7015..4953f67 100644
--- a/libavformat/rdt.c
+++ b/libavformat/rdt.c
@@ -399,6 +399,8 @@ rdt_parse_b64buf (unsigned int *target_len, const char *p)
}
*target_len = len * 3 / 4;
target = av_mallocz(*target_len + FF_INPUT_BUFFER_PADDING_SIZE);
+ if (!target)
+ return NULL;
av_base64_decode(target, p, *target_len);
return target;
}
@@ -525,6 +527,8 @@ rdt_new_context (void)
PayloadContext *rdt = av_mallocz(sizeof(PayloadContext));
int ret = avformat_open_input(&rdt->rmctx, "", &ff_rdt_demuxer, NULL);
+ if (!rdt)
+ return NULL;
if (ret < 0) {
av_free(rdt);
return NULL;
--
1.9.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel