Hi Zhentan, On Thu, Apr 8, 2010 at 8:56 AM, spyfeng <[email protected]> wrote: > Modified: mms/mmst.c > ============================================================================== > --- mms/mmst.c Thu Apr 8 14:52:39 2010 (r5741) > +++ mms/mmst.c Thu Apr 8 14:56:09 2010 (r5742) > @@ -579,7 +579,7 @@ static int mms_open(URLContext *h, const > h->priv_data = av_mallocz(sizeof(MMSContext)); > if (!h->priv_data) > return AVERROR(ENOMEM); > - mms = (MMSContext *) h->priv_data; > + mms = h->priv_data; > > // only for MMS over TCP, so set proto = NULL > ff_url_split(NULL, 0, NULL, 0,
You can merge the statements: mms = h->priv_data = av_mallocz(...). Ronald _______________________________________________ FFmpeg-soc mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc
