[FFmpeg-soc] [soc]: r5740 - mms/mmst.c

spyfeng subversion at mplayerhq.hu
Wed Apr 7 19:43:32 CEST 2010


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


More information about the FFmpeg-soc mailing list