summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Yves Avenard <jyavenard@mythtv.org>2010-12-01 00:19:45 (GMT)
committer Jean-Yves Avenard <jyavenard@mythtv.org>2010-12-01 00:19:45 (GMT)
commit55baf4532f6836c3681a96441cbbf626cb968eaf (patch)
treee1e4e042ac355a3bb02bb978fd741a2ee6777533
parent27b7049987f99aa97f55a4fe6cbf4d5731cd2d8c (diff)
Make AC3 encoder buffer size 16 bytes aligned so float conversion will always be performed using SSE accelerated code
git-svn-id: http://svn.mythtv.org/svn/trunk@27390 7dbf422c-18fa-0310-86e9-fd20926502f2
-rw-r--r--mythtv/libs/libmyth/audio/audiooutputbase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mythtv/libs/libmyth/audio/audiooutputbase.cpp b/mythtv/libs/libmyth/audio/audiooutputbase.cpp
index dda0474..8f2e548 100644
--- a/mythtv/libs/libmyth/audio/audiooutputbase.cpp
+++ b/mythtv/libs/libmyth/audio/audiooutputbase.cpp
@@ -1235,8 +1235,8 @@ bool AudioOutputBase::AddFrames(void *in_buffer, int in_frames,
int remaining = len;
int to_get = 0;
// The AC3 encoder can only work on 128kB of data at a time
- int maxframes = (INBUFSIZE / encoder->FrameSize()) *
- encoder->FrameSize();
+ int maxframes = ((INBUFSIZE / encoder->FrameSize()) *
+ encoder->FrameSize() + 15) & ~0xf;
do
{