# HG changeset patch # User diego # Date 1284304487 0 # Node ID 38ffbeed52a08734744845eaaf28ba716efb5386 # Parent 9646c5ff0832940f7cd85371f674a192d989a90a Replace one more instance of sizeof(WAVEFORMATEX); fix compilation. patch by Clment Bsch, ubitux gmail com diff -r 9646c5ff0832 -r 38ffbeed52a0 libmpdemux/demux_ts.c --- a/libmpdemux/demux_ts.c Sun Sep 12 13:49:08 2010 +0000 +++ b/libmpdemux/demux_ts.c Sun Sep 12 15:14:47 2010 +0000 @@ -358,7 +358,7 @@ if(es->extradata && es->extradata_len) { - sh->wf = malloc(sizeof (MPWAVEFORMATEX) + es->extradata_len); + sh->wf = malloc(sizeof(*sh->wf) + es->extradata_len); sh->wf->cbSize = es->extradata_len; memcpy(sh->wf + 1, es->extradata, es->extradata_len); }