[MPlayer-cvslog] CVS: main/libmpcodecs ae_lavc.c,1.4,1.5
Nico Sabbi CVS
syncmail at mplayerhq.hu
Tue May 17 23:49:51 CEST 2005
CVS change done by Nico Sabbi CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv30698
Modified Files:
ae_lavc.c
Log Message:
wrong memcpy of extradata; 10l to whomever wrote that broken code
Index: ae_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ae_lavc.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ae_lavc.c 22 Apr 2005 23:57:43 -0000 1.4
+++ ae_lavc.c 17 May 2005 21:49:48 -0000 1.5
@@ -76,8 +76,7 @@
mux_a->wf->wBitsPerSample = 0; /* Unknown */
if (lavc_actx->extradata && (lavc_actx->extradata_size > 0))
{
- memcpy(mux_a->wf+sizeof(WAVEFORMATEX), lavc_actx->extradata,
- lavc_actx->extradata_size);
+ memcpy(mux_a->wf+1, lavc_actx->extradata, lavc_actx->extradata_size);
mux_a->wf->cbSize = lavc_actx->extradata_size;
}
else
More information about the MPlayer-cvslog
mailing list