audioparams: cache channel_count

This commit is contained in:
Thomas Wilshaw
2021-04-24 13:23:34 +01:00
parent 573597bec3
commit 8373579009
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ rational AudioParams::bytes_to_time(const qint64 &bytes) const
int AudioParams::channel_count() const
{
return av_get_channel_layout_nb_channels(channel_layout());
return channel_count_;
}
int AudioParams::bytes_per_sample_per_channel() const