[FFmpeg-soc] [soc]: r5737 - mms/mmst.c
Ronald S. Bultje
rsbultje at gmail.com
Wed Apr 7 19:33:44 CEST 2010
Hi Zhentan,
On Wed, Apr 7, 2010 at 12:48 PM, spyfeng <subversion at mplayerhq.hu> wrote:
> 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);
You removed the return AVERROR(ENOMEM) on alloc failure.
Ronald
More information about the FFmpeg-soc
mailing list