diff options
author | James Almer <jamrial@gmail.com> | 2023-02-17 15:41:56 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-02-19 18:30:15 -0300 |
commit | a34b348328dd33d122ea772fc9f516e6aaef193e (patch) | |
tree | 0493c1c4d62052fd0525aceb7cbbf2299c19b3ae /libswresample/rematrix.c | |
parent | 6112745d8eecd9842b2b0854c4415b9a2244bbeb (diff) | |
download | ffmpeg-a34b348328dd33d122ea772fc9f516e6aaef193e.tar.gz |
swresample/swresample: add a used channel layout option using the new API
Replaces the "used channel count" option, which is now deprecated.
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 223c70cf1d8b816b59dede36a21492d7e8542e06)
Diffstat (limited to 'libswresample/rematrix.c')
-rw-r--r-- | libswresample/rematrix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c index 0c3fff6c42..79e8a43eac 100644 --- a/libswresample/rematrix.c +++ b/libswresample/rematrix.c @@ -492,7 +492,7 @@ av_cold static int auto_matrix(SwrContext *s) av_cold int swri_rematrix_init(SwrContext *s){ int i, j; - int nb_in = s->used_ch_count; + int nb_in = s->used_ch_layout.nb_channels; int nb_out = s->out.ch_count; s->mix_any_f = NULL; |