]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
fix bug in AAC channel layout configuration tab
authoruknunknown <alin_gherghescu@yahoo.com>
Fri, 16 Aug 2024 17:27:58 +0000 (10:27 -0700)
committerFlole <Flole998@users.noreply.github.com>
Fri, 23 Aug 2024 12:02:26 +0000 (14:02 +0200)
commit3bb78afa456f6f430827450612b67f53f9cd211e
treeb3faba866be2b1750be29e7de9554bee793360b5
parent267aef151ec30fa9c5469500100ab7f59092d39a
fix bug in AAC channel layout configuration tab

fix bug in AAC channel layout configuration tab
There are few issues:
1. first entry in combo should be AUTO (with value 0) - in original code was set to 1 (and overwritten later)
2. l->nb_channel is not the best way to cycle though layouts available. At the end I think is accessing some region outside of the struct (because I see is lopped also after 7.1). The way I knew how to fix was to add the filter (l->nb_channels < 32). Maybe changing the while to for will be a better option.
3. av_channel_layout() is returning the length of the string ... we should use l_buf only when retuned value > 0 ... when is < 0 l_buf was not updated.
src/transcoding/codec/profile_audio_class.c