Mercurial > mplayer.hg
changeset 27249:4be2b34aa431
Try to keep decoded audio buffer aligned.
Seems to be enough to avoid crashes (due to unaligned SSE2) with FFmpeg vorbis decoding for now.
author | reimar |
---|---|
date | Mon, 14 Jul 2008 16:38:58 +0000 |
parents | f45c38163037 |
children | dcf62171257b |
files | libmpcodecs/dec_audio.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/dec_audio.c Mon Jul 14 15:49:59 2008 +0000 +++ b/libmpcodecs/dec_audio.c Mon Jul 14 16:38:58 2008 +0000 @@ -423,7 +423,7 @@ // Indicates that a filter seems to be buffering large amounts of data int huge_filter_buffer = 0; // 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. * If some filter buffers audio in big blocks this might only hold