]> git.sesse.net Git - ffmpeg/blobdiff - libswresample/rematrix.c
avformat/hlsenc: free options fix memleak in hls_write_trailer
[ffmpeg] / libswresample / rematrix.c
index 82277300564d652cb40345e98c6be3f7df03f5ad..6b5feaa07b69e408cd99b2ba0613786656bc4c54 100644 (file)
@@ -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;