[FFmpeg-devel] [PATCH 3/4] lavfi/buffersrc: remove init of rate and layout.

Nicolas George nicolas.george at normalesup.org
Sun Dec 2 18:39:12 CET 2012


The sample rate and channel layout are negociated and set
by the filter graph system, the filters must not set them.

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

diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index 7949098..5d0fa92 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -345,8 +345,6 @@ static int config_props(AVFilterLink *link)
         link->sample_aspect_ratio = c->pixel_aspect;
         break;
     case AVMEDIA_TYPE_AUDIO:
-        link->channel_layout = c->channel_layout;
-        link->sample_rate    = c->sample_rate;
         break;
     default:
         return AVERROR(EINVAL);
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list