[MPlayer-cvslog] r31709 - trunk/libmpdemux/demux_lavf.c

reimar subversion at mplayerhq.hu
Sun Jul 11 16:51:51 CEST 2010


Author: reimar
Date: Sun Jul 11 16:51:51 2010
New Revision: 31709

Log:
Avoid incorrectly duplicating initialization code in new_demux_packet,
just use it directly with a size of 0.

Modified:
   trunk/libmpdemux/demux_lavf.c

Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c	Sun Jul 11 16:02:58 2010	(r31708)
+++ trunk/libmpdemux/demux_lavf.c	Sun Jul 11 16:51:51 2010	(r31709)
@@ -612,13 +612,9 @@ static int demux_lavf_fill_buffer(demuxe
     }
 
     if(pkt.destruct == av_destruct_packet && !CONFIG_MEMALIGN_HACK){
-        dp=malloc(sizeof(demux_packet_t));
+        dp=new_demux_packet(0);
         dp->len=pkt.size;
-        dp->next=NULL;
-        dp->refcount=1;
-        dp->master=NULL;
         dp->buffer=pkt.data;
-        dp->stream_pts = MP_NOPTS_VALUE;
         pkt.destruct= NULL;
     }else{
         dp=new_demux_packet(pkt.size);


More information about the MPlayer-cvslog mailing list