Navigation Menu

Skip to content

Commit

Permalink
codec-utils: properly determine AAC Level
Browse files Browse the repository at this point in the history
Table 1.10 – "Levels for the AAC Profile" only goes to 5 max channels
/ 7 max channel post amendmend, so I assume the number of channels
should not include LFE, otherwise there's no valid level for 5.1 resp.
7.1 (post amendmend)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/680>
  • Loading branch information
knopp authored and GStreamer Marge Bot committed Apr 7, 2021
1 parent a5e2883 commit e0623aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gst-libs/gst/pbutils/codec-utils.c
Expand Up @@ -448,7 +448,7 @@ gst_codec_utils_aac_get_level (const guint8 * audio_config, guint len)
else
rcu += (rcu_ref + (rcu_ref - 1) * ((2 * num_cpe) - 1));

num_channels = num_sce + (2 * num_cpe) + num_lfe;
num_channels = num_sce + (2 * num_cpe);

if (audio_object_type == 2) {
/* AAC LC => return the level as per the 'AAC Profile' */
Expand Down

0 comments on commit e0623aa

Please sign in to comment.