File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/AvTranscoder/properties Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ size_t AudioProperties::getBitRate() const
128
128
return _codecContext->bit_rate ;
129
129
130
130
// else get computed bit rate from our computation (warning: way to compute bit rate of PCM audio data)
131
- int bitsPerSample = av_get_bits_per_sample (_codecContext->codec_id ); // 0 if unknown for the given codec
131
+ const int bitsPerSample = av_get_bits_per_sample (_codecContext->codec_id ); // 0 if unknown for the given codec
132
132
return _codecContext->sample_rate * _codecContext->channels * bitsPerSample;
133
133
}
134
134
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class AvExport AudioProperties : public StreamProperties
21
21
22
22
size_t getSampleRate () const ;
23
23
size_t getNbChannels () const ;
24
- size_t getBitRate () const ; // /< 0 if unknown
24
+ size_t getBitRate () const ; // /< in bits/s, 0 if unknown
25
25
size_t getNbSamples () const ;
26
26
27
27
size_t getTicksPerFrame () const ;
You can’t perform that action at this time.
0 commit comments