Revert an broke fix in the audio decoder.

This commit is contained in:
Damiano Galassi committed 2017-09-19 12:18:16 +02:00
1 parent 5591290daa
commit 0f88c93098
1 file changed
+2 -1
+2 -1
View File
@@ -354,9 +354,10 @@ static void configureDescriptors(MP42DecodeContext *context, AVFrame *frame)
context->inputFormat->mSampleRate = sample_rate;
if (sample_rate > 48000) {
context->outputFormat->mSampleRate = sample_rate;
sample_rate = 48000;
}
context->outputFormat->mSampleRate = sample_rate;
context->outputFormat->mBytesPerPacket = 4 * context->outputFormat->mChannelsPerFrame;
context->outputFormat->mBytesPerFrame = context->outputFormat->mBytesPerPacket * context->outputFormat->mFramesPerPacket;