mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 23:13:18 +08:00
100l, completely broken pointer arithmetic causing crashes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14536 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
@@ -924,7 +924,7 @@ int demux_ogg_open(demuxer_t* demuxer) {
|
||||
sh_a->samplesize = (sh_a->wf->wBitsPerSample+7)/8;
|
||||
sh_a->wf->cbSize = extra_size;
|
||||
if(extra_size > 0)
|
||||
memcpy(sh_a->wf+sizeof(WAVEFORMATEX),pack.packet+142,extra_size);
|
||||
memcpy(((char *)sh_a->wf)+sizeof(WAVEFORMATEX),pack.packet+142,extra_size);
|
||||
|
||||
ogg_d->subs[ogg_d->num_sub].samplerate = sh_a->samplerate; // * sh_a->channels;
|
||||
if (identify)
|
||||
@@ -981,7 +981,7 @@ int demux_ogg_open(demuxer_t* demuxer) {
|
||||
sh_a->samplesize = (sh_a->wf->wBitsPerSample+7)/8;
|
||||
sh_a->wf->cbSize = extra_size;
|
||||
if(extra_size)
|
||||
memcpy(sh_a->wf+sizeof(WAVEFORMATEX),st+1,extra_size);
|
||||
memcpy(((char *)sh_a->wf)+sizeof(WAVEFORMATEX),st+1,extra_size);
|
||||
|
||||
ogg_d->subs[ogg_d->num_sub].samplerate = sh_a->samplerate; // * sh_a->channels;
|
||||
if (identify)
|
||||
|
||||
Reference in New Issue
Block a user