changeset 31588:e8bb6ecadfbc

1 memcpy less in lavf demuxing.
author michael
date Sat, 10 Jul 2010 02:25:07 +0000
parents bd6538cd7740
children ef92321146a1
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Fri Jul 09 22:36:26 2010 +0000
+++ b/libmpdemux/demux_lavf.c	Sat Jul 10 02:25:07 2010 +0000
@@ -616,14 +616,14 @@
         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);