[FFmpeg-cvslog] lavfi/anullsrc: simplify logging code in config_props
Stefano Sabatini
git at videolan.org
Sat Mar 23 16:59:37 CET 2013
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Fri Mar 22 01:39:48 2013 +0100| [fe2cfd50f041c1fa589fb459a623d1b371db12f1] | committer: Stefano Sabatini
lavfi/anullsrc: simplify logging code in config_props
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fe2cfd50f041c1fa589fb459a623d1b371db12f1
---
libavfilter/asrc_anullsrc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libavfilter/asrc_anullsrc.c b/libavfilter/asrc_anullsrc.c
index 4989638..767dcf3 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);
More information about the ffmpeg-cvslog
mailing list