Mercurial > mplayer.hg
changeset 31643:33be6a8f9197
Avoid incorrectly duplicating initialization code in new_demux_packet,
just use it directly with a size of 0.
author | reimar |
---|---|
date | Sun, 11 Jul 2010 14:51:51 +0000 |
parents | af4d89e131b4 |
children | 68114b6e8311 |
files | libmpdemux/demux_lavf.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c Sun Jul 11 14:02:58 2010 +0000 +++ b/libmpdemux/demux_lavf.c Sun Jul 11 14:51:51 2010 +0000 @@ -612,13 +612,9 @@ } 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);