aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-03-22 01:39:48 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-03-23 16:53:13 +0100
commitfe2cfd50f041c1fa589fb459a623d1b371db12f1 (patch)
tree2321c26b64509346c6216ac14b4384fa2f3397e9 /libavfilter
parent5373a2a2212bd7eaa863258fdfb18f4655106661 (diff)
downloadffmpeg-fe2cfd50f041c1fa589fb459a623d1b371db12f1.tar.gz
lavfi/anullsrc: simplify logging code in config_props
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/asrc_anullsrc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/asrc_anullsrc.c b/libavfilter/asrc_anullsrc.c
index 4989638428..767dcf3f71 100644
--- a/libavfilter/asrc_anullsrc.c
+++ b/libavfilter/asrc_anullsrc.c
@@ -98,10 +98,8 @@ static int config_props(AVFilterLink *outlink)
{
ANullContext *null = outlink->src->priv;
char buf[128];
- int chans_nb;
- chans_nb = av_get_channel_layout_nb_channels(null->channel_layout);
- av_get_channel_layout_string(buf, sizeof(buf), chans_nb, null->channel_layout);
+ av_get_channel_layout_string(buf, sizeof(buf), 0, null->channel_layout);
av_log(outlink->src, AV_LOG_VERBOSE,
"sample_rate:%d channel_layout:'%s' nb_samples:%d\n",
null->sample_rate, buf, null->nb_samples);