Revert an broke fix in the audio decoder.
This commit is contained in:
1 file changed
+2
-1
@@ -354,9 +354,10 @@ static void configureDescriptors(MP42DecodeContext *context, AVFrame *frame)
|
|||||||
context->inputFormat->mSampleRate = sample_rate;
|
context->inputFormat->mSampleRate = sample_rate;
|
||||||
|
|
||||||
if (sample_rate > 48000) {
|
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->mBytesPerPacket = 4 * context->outputFormat->mChannelsPerFrame;
|
||||||
context->outputFormat->mBytesPerFrame = context->outputFormat->mBytesPerPacket * context->outputFormat->mFramesPerPacket;
|
context->outputFormat->mBytesPerFrame = context->outputFormat->mBytesPerPacket * context->outputFormat->mFramesPerPacket;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user