avcodec/audiotoolboxenc: use the correct function name

Signed-off-by: James Almer <jamrial@gmail.com>
release/5.1
James Almer 3 years ago
parent 6f8b8e6332
commit 793c85bc4d
  1. 2
      libavcodec/audiotoolboxenc.c

@ -186,7 +186,7 @@ static int remap_layout(AudioChannelLayout *layout, const AVChannelLayout *in_la
for (i = 0; i < in_layout->nb_channels; i++) { for (i = 0; i < in_layout->nb_channels; i++) {
int c, label; int c, label;
c = av_channel_layout_get_channel(in_layout, i); c = av_channel_layout_channel_from_index(in_layout, i);
if (c < 0 || c >= 64) if (c < 0 || c >= 64)
return AVERROR(EINVAL); return AVERROR(EINVAL);
label = get_channel_label(c); label = get_channel_label(c);

Loading…
Cancel
Save