Skip to content

Commit

Permalink
Make AC3 encoder buffer size 16 bytes aligned so float conversion wil…
Browse files Browse the repository at this point in the history
…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
jyavenard committed Dec 1, 2010
1 parent 27b7049 commit 55baf45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmyth/audio/audiooutputbase.cpp
Expand Up @@ -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
{
Expand Down

0 comments on commit 55baf45

Please sign in to comment.