X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libswresample%2Frematrix.c;h=6b5feaa07b69e408cd99b2ba0613786656bc4c54;hb=ba436c1586d05bfd2094c26ca4ecb1542752cf38;hp=82277300564d652cb40345e98c6be3f7df03f5ad;hpb=cbd5e737fee5e64109fffbc5c2dc05024a06c2c6;p=ffmpeg diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c index 82277300564..6b5feaa07b6 100644 --- a/libswresample/rematrix.c +++ b/libswresample/rematrix.c @@ -384,8 +384,8 @@ av_cold static int auto_matrix(SwrContext *s) av_cold int swri_rematrix_init(SwrContext *s){ int i, j; - 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; s->mix_any_f = NULL;