Author: spyfeng
Date: Wed Apr 7 19:43:32 2010
New Revision: 5740
Log:
check alloc memory failure.
Modified:
mms/mmst.c
Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c Wed Apr 7 19:40:57 2010 (r5739)
+++ mms/mmst.c Wed Apr 7 19:43:32 2010 (r5740)
@@ -577,6 +577,8 @@ static int mms_open(URLContext *h, const
h->is_streamed = 1;
h->priv_data = av_mallocz(sizeof(MMSContext));
+ if (!h->priv_data)
+ return AVERROR(ENOMEM);
mms = (MMSContext *) h->priv_data;
// only for MMS over TCP, so set proto = NULL
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc