---
libavformat/rtpdec_asf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c
index 61b1419..59ba6c9 100644
--- a/libavformat/rtpdec_asf.c
+++ b/libavformat/rtpdec_asf.c
@@ -102,6 +102,8 @@ int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char
*p)
AVDictionary *opts = NULL;
int len = strlen(p) * 6 / 8;
char *buf = av_mallocz(len);
+ if (!buf)
+ return AVERROR(ENOMEM);
av_base64_decode(buf, p, len);
if (rtp_asf_fix_header(buf, len) < 0)
--
1.8.3.2
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel