[FFmpeg-devel] [PATCH 17/25] avfilter/af_headphone: Simplify finding channel index

Paul B Mahol onemda at gmail.com
Wed Sep 9 04:25:59 EEST 2020


On Tue, Sep 08, 2020 at 11:18:48PM +0200, Andreas Rheinhardt wrote:
> 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.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavfilter/af_headphone.c | 32 ++++++++------------------------
>  1 file changed, 8 insertions(+), 24 deletions(-)
> 

should be fine if does not break usage.


More information about the ffmpeg-devel mailing list