Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2015-10-15 20:07:27 +0300
committerwm4 <nfxjfg@googlemail.com>2015-10-15 21:16:13 +0300
commitcdf4a13f86157155bf9518a51369f0d5c03ae707 (patch)
tree014ca322f2457848bd64197e5507e3a335bea6dd /libswresample/rematrix.c
parentbe583c6fd3a6f06844b56619653b9b0e4561870d (diff)
swresample: slightly nicer debug output for auto matrix
This is the matrix that will be used for up/downmixing.
Diffstat (limited to 'libswresample/rematrix.c')
-rw-r--r--libswresample/rematrix.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c
index 54ebb96b04..932088ffb7 100644
--- a/libswresample/rematrix.c
+++ b/libswresample/rematrix.c
@@ -340,11 +340,16 @@ av_cold static int auto_matrix(SwrContext *s)
}
}
+ av_log(s, AV_LOG_DEBUG, "Matrix coefficients:\n");
for(i=0; i<av_get_channel_layout_nb_channels(out_ch_layout); i++){
+ const char *c =
+ av_get_channel_name(av_channel_layout_extract_channel(out_ch_layout, i));
+ av_log(s, AV_LOG_DEBUG, "%s: ", c ? c : "?");
for(j=0; j<av_get_channel_layout_nb_channels(in_ch_layout); j++){
- av_log(NULL, AV_LOG_DEBUG, "%f ", s->matrix[i][j]);
+ c = av_get_channel_name(av_channel_layout_extract_channel(in_ch_layout, j));
+ av_log(s, AV_LOG_DEBUG, "%s:%f ", c ? c : "?", s->matrix[i][j]);
}
- av_log(NULL, AV_LOG_DEBUG, "\n");
+ av_log(s, AV_LOG_DEBUG, "\n");
}
return 0;
}