[FFmpeg-cvslog] lavfi/buffersrc: remove init of rate and layout.

Nicolas George git at videolan.org
Thu Dec 20 13:11:39 CET 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Dec  2 16:32:29 2012 +0100| [5033a1af1711b6d99b689672f638222c8494bd56] | committer: Nicolas George

lavfi/buffersrc: remove init of rate and layout.

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

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

 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);



More information about the ffmpeg-cvslog mailing list