[FFmpeg-devel] [PATCH] lavfi/af_aconvert: update audio->channels.
Nicolas George
nicolas.george at normalesup.org
Thu Dec 20 16:47:18 CET 2012
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
libavfilter/af_aconvert.c | 1 +
1 file changed, 1 insertion(+)
Fix some random assert failures added by the previous patch.
By the way, I believe the real culprit here is
avfilter_copy_buffer_ref_props(): it seems like a rather bad idea in
general.
diff --git a/libavfilter/af_aconvert.c b/libavfilter/af_aconvert.c
index 54f1fcd..e41095f 100644
--- a/libavfilter/af_aconvert.c
+++ b/libavfilter/af_aconvert.c
@@ -147,6 +147,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamplesref)
(void *)insamplesref->data, n);
avfilter_copy_buffer_ref_props(outsamplesref, insamplesref);
+ outsamplesref->audio->channels = outlink->channels;
outsamplesref->audio->channel_layout = outlink->channel_layout;
ret = ff_filter_frame(outlink, outsamplesref);
--
1.7.10.4
More information about the ffmpeg-devel
mailing list