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

Ronald S. Bultje rsbultje at gmail.com
Thu Apr 8 15:44:39 CEST 2010


Hi Zhentan,

On Thu, Apr 8, 2010 at 8:56 AM, spyfeng <subversion at mplayerhq.hu> 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


More information about the FFmpeg-soc mailing list