]> git.sesse.net Git - ffmpeg/commit
avfilter/af_headphone: Simplify finding channel index
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 27 Aug 2020 05:28:55 +0000 (07:28 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 9 Sep 2020 11:47:30 +0000 (13:47 +0200)
commit9d1f58424aa3154e63b7c7cfed6c5311ad6a6ccc
tree987dcab5b29915a1524e1b55563700ae50744666
parent0952f8f909fa723d790ceb43e562e316efbf99dd
avfilter/af_headphone: Simplify finding channel index

Before this commit, the headphone filter called
av_channel_layout_extract_channel() in a loop in order to find out
the index of a channel (given via its AV_CH_* value) in a channel layout.
This commit changes this to av_get_channel_layout_channel_index()
instead.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/af_headphone.c