Mercurial > mplayer.hg
changeset 32115:38ffbeed52a0
Replace one more instance of sizeof(WAVEFORMATEX); fix compilation.
patch by Clment Bsch, ubitux gmail com
author | diego |
---|---|
date | Sun, 12 Sep 2010 15:14:47 +0000 |
parents | 9646c5ff0832 |
children | 601319a3523e |
files | libmpdemux/demux_ts.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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); }