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);
}
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc