Mercurial > mplayer.hg
changeset 15501:7cdc07507650
wrong memcpy of extradata; 10l to whomever wrote that broken code
author | nicodvb |
---|---|
date | Tue, 17 May 2005 21:49:48 +0000 |
parents | 41fd530bd7a9 |
children | ef7349907cf4 |
files | libmpcodecs/ae_lavc.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ae_lavc.c Tue May 17 21:44:28 2005 +0000 +++ b/libmpcodecs/ae_lavc.c Tue May 17 21:49:48 2005 +0000 @@ -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