[MPlayer-cvslog] r27281 - trunk/libmpcodecs/dec_audio.c

reimar subversion at mplayerhq.hu
Mon Jul 14 18:38:58 CEST 2008


Author: reimar
Date: Mon Jul 14 18:38:58 2008
New Revision: 27281

Log:
Try to keep decoded audio buffer aligned.
Seems to be enough to avoid crashes (due to unaligned SSE2) with FFmpeg vorbis decoding for now.


Modified:
   trunk/libmpcodecs/dec_audio.c

Modified: trunk/libmpcodecs/dec_audio.c
==============================================================================
--- trunk/libmpcodecs/dec_audio.c	(original)
+++ trunk/libmpcodecs/dec_audio.c	Mon Jul 14 18:38:58 2008
@@ -423,7 +423,7 @@ int decode_audio(sh_audio_t *sh_audio, i
     // 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



More information about the MPlayer-cvslog mailing list