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 a1cc138 commit 9aeedb1Copy full SHA for 9aeedb1
src/AvTranscoder/properties/AudioProperties.cpp
@@ -129,7 +129,7 @@ size_t AudioProperties::getBitRate() const
129
130
// else get computed bit rate from our computation (warning: way to compute bit rate of PCM audio data)
131
const int bitsPerSample = av_get_bits_per_sample(_codecContext->codec_id); // 0 if unknown for the given codec
132
- return _codecContext->sample_rate * _codecContext->channels * bitsPerSample;
+ return getSampleRate() * getNbChannels() * bitsPerSample;
133
}
134
135
size_t AudioProperties::getNbSamples() const
0 commit comments