Merge pull request #153 from danielgindi/quality

Transcode using the same number of channels as the datasource
This commit is contained in:
Thong Nguyen 2014-12-29 16:41:23 +00:00
commit 7d4d7b847e
1 changed files with 2 additions and 0 deletions

View File

@ -1879,6 +1879,8 @@ static BOOL GetHardwareCodecClassDesc(UInt32 formatId, AudioClassDescription* cl
[self destroyAudioConverter];
canonicalAudioStreamBasicDescription.mChannelsPerFrame = asbd->mChannelsPerFrame;
AudioClassDescription classDesc;
if (GetHardwareCodecClassDesc(asbd->mFormatID, &classDesc))