mirror of https://github.com/mpv-player/mpv
Try to keep decoded audio buffer aligned.
Seems to be enough to avoid crashes (due to unaligned SSE2) with FFmpeg vorbis decoding for now. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27281 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
95cee5309f
commit
cf8d381255
|
@ -423,7 +423,7 @@ int decode_audio(sh_audio_t *sh_audio, int minlen)
|
||||||
// Indicates that a filter seems to be buffering large amounts of data
|
// Indicates that a filter seems to be buffering large amounts of data
|
||||||
int huge_filter_buffer = 0;
|
int huge_filter_buffer = 0;
|
||||||
// Decoded audio must be cut at boundaries of this many bytes
|
// Decoded audio must be cut at boundaries of this many bytes
|
||||||
int unitsize = sh_audio->channels * sh_audio->samplesize;
|
int unitsize = sh_audio->channels * sh_audio->samplesize * 16;
|
||||||
|
|
||||||
/* Filter output size will be about filter_multiplier times input size.
|
/* Filter output size will be about filter_multiplier times input size.
|
||||||
* If some filter buffers audio in big blocks this might only hold
|
* If some filter buffers audio in big blocks this might only hold
|
||||||
|
|
Loading…
Reference in New Issue