aboutsummaryrefslogtreecommitdiff
path: root/libswresample/x86
diff options
context:
space:
mode:
Diffstat (limited to 'libswresample/x86')
-rw-r--r--libswresample/x86/rematrix_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswresample/x86/rematrix_init.c b/libswresample/x86/rematrix_init.c
index d71b41a73e..d6616f83be 100644
--- a/libswresample/x86/rematrix_init.c
+++ b/libswresample/x86/rematrix_init.c
@@ -33,8 +33,8 @@ D(int16, sse2)
av_cold int swri_rematrix_init_x86(struct SwrContext *s){
#if HAVE_X86ASM
int mm_flags = av_get_cpu_flags();
- int nb_in = av_get_channel_layout_nb_channels(s->in_ch_layout);
- int nb_out = av_get_channel_layout_nb_channels(s->out_ch_layout);
+ int nb_in = s->used_ch_count;
+ int nb_out = s->out.ch_count;
int num = nb_in * nb_out;
int i,j;