[MPlayer-cvslog] r32199 - trunk/libmpdemux/demux_ts.c
diego
subversion at mplayerhq.hu
Sun Sep 12 17:14:47 CEST 2010
Author: diego
Date: Sun Sep 12 17:14:47 2010
New Revision: 32199
Log:
Replace one more instance of sizeof(WAVEFORMATEX); fix compilation.
patch by Clément Bœsch, ubitux gmail com
Modified:
trunk/libmpdemux/demux_ts.c
Modified: trunk/libmpdemux/demux_ts.c
==============================================================================
--- trunk/libmpdemux/demux_ts.c Sun Sep 12 15:49:08 2010 (r32198)
+++ trunk/libmpdemux/demux_ts.c Sun Sep 12 17:14:47 2010 (r32199)
@@ -358,7 +358,7 @@ static void ts_add_stream(demuxer_t * de
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);
}
More information about the MPlayer-cvslog
mailing list