[FFmpeg-soc] [soc]: r5737 - mms/mmst.c
spyfeng
subversion at mplayerhq.hu
Wed Apr 7 18:48:45 CEST 2010
Author: spyfeng
Date: Wed Apr 7 18:48:45 2010
New Revision: 5737
Log:
use av_mallocz() instead of av_malloc() and memset().
Modified:
mms/mmst.c
Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c Wed Apr 7 18:34:05 2010 (r5736)
+++ mms/mmst.c Wed Apr 7 18:48:45 2010 (r5737)
@@ -608,11 +608,7 @@ static int mms_open(URLContext *h, const
MMSContext *mms;
h->is_streamed = 1;
- mms = av_malloc(sizeof(MMSContext));
- if (!mms)
- return AVERROR(ENOMEM);
- memset(mms, 0, sizeof(MMSContext));
- h->priv_data = mms;
+ h->priv_data = av_mallocz(sizeof(MMSContext));
return mms_open_cnx(h, uri);
}
More information about the FFmpeg-soc
mailing list