diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-17 21:49:48 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-17 21:49:48 +0000 |
commit | 08e085ad3f76f1b4ea5610516d868ab7e43ae240 (patch) | |
tree | cbc97b87f99851edcc86f7f387bf605959eb7b62 /libmpcodecs | |
parent | 34ad64a0ed1cab659bf34e4132102e677eb0f7f2 (diff) |
wrong memcpy of extradata; 10l to whomever wrote that broken code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15502 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/ae_lavc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libmpcodecs/ae_lavc.c b/libmpcodecs/ae_lavc.c index a5792a2474..ce6ca9766d 100644 --- a/libmpcodecs/ae_lavc.c +++ b/libmpcodecs/ae_lavc.c @@ -76,8 +76,7 @@ static int bind_lavc(audio_encoder_t *encoder, muxer_stream_t *mux_a) 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 |