Skip to content
Browse files

Make AC3 encoder buffer size 16 bytes aligned so float conversion wil…

…l always be performed using SSE accelerated code

git-svn-id: http://svn.mythtv.org/svn/trunk@27390 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
1 parent 27b7049 commit 55baf4532f6836c3681a96441cbbf626cb968eaf @jyavenard jyavenard committed Dec 1, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmyth/audio/audiooutputbase.cpp
View
4 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
{

0 comments on commit 55baf45

Please sign in to comment.
Something went wrong with that request. Please try again.