# HG changeset patch # User michael # Date 1278728707 0 # Node ID e8bb6ecadfbccc59919ebd5ffab054fd457a4f80 # Parent bd6538cd77404dac15bd2b648c2403df628b3155 1 memcpy less in lavf demuxing. diff -r bd6538cd7740 -r e8bb6ecadfbc libmpdemux/demux_lavf.c --- 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);