[FFmpeg-devel] [PATCH 3/3] lavfi/af_amerge: set outbuf->audio->channels.

Nicolas George nicolas.george at normalesup.org
Thu Jan 31 14:39:09 CET 2013


The value is lost because of avfilter_copy_buffer_ref_props().

Fix trac ticket #2217.

Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavfilter/af_amerge.c |    1 +
 1 file changed, 1 insertion(+)


Note: it "fixes" the failure in this trac ticket, but the whole command
does not work, since the input is too unbalanced.


diff --git a/libavfilter/af_amerge.c b/libavfilter/af_amerge.c
index e552682..f67a7a8 100644
--- a/libavfilter/af_amerge.c
+++ b/libavfilter/af_amerge.c
@@ -260,6 +260,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples)
 
     outbuf->audio->nb_samples     = nb_samples;
     outbuf->audio->channel_layout = outlink->channel_layout;
+    outbuf->audio->channels       = outlink->channels;
 
     while (nb_samples) {
         ns = nb_samples;
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list