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

michael subversion at mplayerhq.hu
Sat Jul 10 04:25:07 CEST 2010


Author: michael
Date: Sat Jul 10 04:25:07 2010
New Revision: 31654

Log:
1 memcpy less in lavf demuxing.

Modified:
   trunk/libmpdemux/demux_lavf.c

Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c	Sat Jul 10 00:36:26 2010	(r31653)
+++ trunk/libmpdemux/demux_lavf.c	Sat Jul 10 04:25:07 2010	(r31654)
@@ -616,14 +616,14 @@ static int demux_lavf_fill_buffer(demuxe
         return 1;
     }
 
-    if(0/*pkt.destruct == av_destruct_packet*/){
-        //ok kids, dont try this at home :)
+    if(pkt.destruct == av_destruct_packet && !CONFIG_MEMALIGN_HACK){
         dp=malloc(sizeof(demux_packet_t));
         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