[FFmpeg-cvslog] lavfi/af_aresample: fix info log for unknown layouts.

Nicolas George git at videolan.org
Thu Feb 28 19:26:34 CET 2013


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Feb 26 20:13:57 2013 +0100| [3d2adeb6f8b71c62bce034300f9220b01b92f88d] | committer: Nicolas George

lavfi/af_aresample: fix info log for unknown layouts.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3d2adeb6f8b71c62bce034300f9220b01b92f88d
---

 libavfilter/af_aresample.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c
index ab3e7cf..66a8a53 100644
--- a/libavfilter/af_aresample.c
+++ b/libavfilter/af_aresample.c
@@ -165,8 +165,8 @@ static int config_output(AVFilterLink *outlink)
 
     aresample->ratio = (double)outlink->sample_rate / inlink->sample_rate;
 
-    av_get_channel_layout_string(inchl_buf,  sizeof(inchl_buf),  -1, inlink ->channel_layout);
-    av_get_channel_layout_string(outchl_buf, sizeof(outchl_buf), -1, outlink->channel_layout);
+    av_get_channel_layout_string(inchl_buf,  sizeof(inchl_buf),  inlink ->channels, inlink ->channel_layout);
+    av_get_channel_layout_string(outchl_buf, sizeof(outchl_buf), outlink->channels, outlink->channel_layout);
 
     av_log(ctx, AV_LOG_VERBOSE, "ch:%d chl:%s fmt:%s r:%dHz -> ch:%d chl:%s fmt:%s r:%dHz\n",
            inlink ->channels, inchl_buf,  av_get_sample_fmt_name(inlink->format),  inlink->sample_rate,



More information about the ffmpeg-cvslog mailing list