[MPlayer-dev-eng] [PATCH] 1 memcpy less in lavf demuxer

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Jun 26 20:14:27 CEST 2010


On Tue, Jun 22, 2010 at 11:36:39PM +0200, Michael Niedermayer wrote:
> +    if(pkt.destruct == av_destruct_packet){
>          dp=malloc(sizeof(demux_packet_t));
>          dp->len=pkt.size;
>          dp->next=NULL;
>          dp->refcount=1;
>          dp->master=NULL;
>          dp->buffer=pkt.data;

Um, won't MPlayer use free() instead of av_free() on this,
thus breaking on Windows?
I know we replaced some malloc/free with the av_ functions,
but not the demuxer ones I think...



More information about the MPlayer-dev-eng mailing list