We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0746921 commit 69604e5Copy full SHA for 69604e5
src/AvTranscoder/decoder/AudioGenerator.cpp
@@ -29,16 +29,6 @@ bool AudioGenerator::decodeNextFrame(Frame& frameBuffer)
29
static_cast<AudioFrame&>(frameBuffer).allocateAVSample(_frameDesc);
30
}
31
32
- // Check channel layout of the given frame to be able to copy audio data to it.
33
- // @see Frame.copyData method
34
- if(frameBuffer.getAVFrame().channel_layout == 0)
35
- {
36
- const size_t channelLayout = av_get_default_channel_layout(frameBuffer.getAVFrame().channels);
37
- LOG_WARN("Channel layout en the audio frame is not set. Set it to '" << channelLayout
38
- << "' to be able to copy silence data.")
39
- av_frame_set_channel_layout(&frameBuffer.getAVFrame(), channelLayout);
40
- }
41
-
42
// Generate silent
43
if(!_inputFrame)
44
{
0 commit comments