aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-12-02 16:32:29 +0100
committerNicolas George <nicolas.george@normalesup.org>2012-12-20 13:03:42 +0100
commit5033a1af1711b6d99b689672f638222c8494bd56 (patch)
tree9271fa31a39ebe783a73bd79eaa4edc570d62cee
parent34de47aa35a39ddcf085b28f7c99f8de8f6c3c9c (diff)
downloadffmpeg-5033a1af1711b6d99b689672f638222c8494bd56.tar.gz
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.
-rw-r--r--libavfilter/buffersrc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index 7949098c84..5d0fa92a4b 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);