summaryrefslogtreecommitdiff
authorJustin Ruggles <justin.ruggles@gmail.com>2012-12-29 19:22:55 (GMT)
committer Justin Ruggles <justin.ruggles@gmail.com>2013-01-08 02:49:07 (GMT)
commit7ff3fd7ae4d6b178501f2f98ff64cbaad02752cc (patch)
tree3c50c7f05e415d317305077872877467a83b3f8a
parent4164b0e8d38bc579cef777d7971c90c72a0600e7 (diff)
downloadffmpeg-7ff3fd7ae4d6b178501f2f98ff64cbaad02752cc.zip
ffmpeg-7ff3fd7ae4d6b178501f2f98ff64cbaad02752cc.tar.gz
ffmpeg-7ff3fd7ae4d6b178501f2f98ff64cbaad02752cc.tar.bz2
lavr: log channel conversion description for any-to-any functions
Diffstat
-rw-r--r--libavresample/audio_mix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavresample/audio_mix.c b/libavresample/audio_mix.c
index 8df8a02..12f5d24 100644
--- a/libavresample/audio_mix.c
+++ b/libavresample/audio_mix.c
@@ -87,11 +87,12 @@ void ff_audio_mix_set_func(AudioMix *am, enum AVSampleFormat fmt,
} else if (out_channels) {
snprintf(chan_str, sizeof(chan_str), "[any to %d] ",
out_channels);
+ } else {
+ snprintf(chan_str, sizeof(chan_str), "[any to any] ");
}
av_log(am->avr, AV_LOG_DEBUG, "audio_mix: found function: [fmt=%s] "
"[c=%s] %s(%s)\n", av_get_sample_fmt_name(fmt),
- coeff_type_names[coeff_type],
- (in_channels || out_channels) ? chan_str : "", descr);
+ coeff_type_names[coeff_type], chan_str, descr);
}
}