[FFmpeg-devel] [PATCH 3/4] lavfi/buffersrc: remove init of rate and layout.
Stefano Sabatini
stefasab at gmail.com
Thu Dec 20 00:57:28 CET 2012
On date Sunday 2012-12-02 18:39:12 +0100, Nicolas George encoded:
> The sample rate and channel layout are negociated and set
negotiated
> 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;
I'm not sure about this, how is this different from the video case?
--
FFmpeg = Freak & Fanciful Multimedia Problematic Elaborated Generator
More information about the ffmpeg-devel
mailing list