Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reduce number of maximum frames for AC3 encoder so prevent buffer ove…

…rflow
  • Loading branch information...
commit c8b1c9df53df21d4edf739f720631c589122a864 1 parent 6d78242
@jyavenard jyavenard authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mythtv/libs/libmyth/audio/audiooutputbase.cpp
View
2  mythtv/libs/libmyth/audio/audiooutputbase.cpp
@@ -1236,7 +1236,7 @@ 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()) *
+ int maxframes = ((INBUFSIZE / encoder->FrameSize() - 1) *
encoder->FrameSize()) & ~0xf;
do
Please sign in to comment.
Something went wrong with that request. Please try again.