diff options
author | Henri Herscher <henri@oreka.org> | 2006-12-05 21:12:12 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2006-12-05 21:12:12 +0000 |
commit | f2eb4e60e3ad73812501a7d14951805bde113c5a (patch) | |
tree | 97d3a9c871170463c4421d4520799adb4db74dc1 /orkbasecxx/audiofile/MediaChunkFile.cpp | |
parent | c5b036d73e495c0f4dc930233844f1c5c7070995 (diff) |
Fix for an RtpMixer bug where an empty chunk was generated in the output (Background processing was aborting saying the Audio Encoding was unknown). AudioChunk SetBuffer and CreateBuffer methods now use the byteSize contained in the chunk details structure instead of asking for it separately.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@360 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/audiofile/MediaChunkFile.cpp')
-rw-r--r-- | orkbasecxx/audiofile/MediaChunkFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/orkbasecxx/audiofile/MediaChunkFile.cpp b/orkbasecxx/audiofile/MediaChunkFile.cpp index d750399..e8fc437 100644 --- a/orkbasecxx/audiofile/MediaChunkFile.cpp +++ b/orkbasecxx/audiofile/MediaChunkFile.cpp @@ -136,7 +136,7 @@ int MediaChunkFile::ReadChunkMono(AudioChunkRef& chunkRef) { throw(CStdString("Incomplete chunk in file:")+ m_filename); } - chunkRef->SetBuffer(temp, details.m_numBytes, details); + chunkRef->SetBuffer(temp, details); } } } |