[FFmpeg-devel] [PATCH 3/3] lavfi/af_amerge: set outbuf->audio->channels.

Stefano Sabatini stefasab at gmail.com
Thu Jan 31 17:57:39 CET 2013


On date Thursday 2013-01-31 14:39:09 +0100, Nicolas George encoded:
> The value is lost because of avfilter_copy_buffer_ref_props().
> 
> Fix trac ticket #2217.
> 
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  libavfilter/af_amerge.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> 
> Note: it "fixes" the failure in this trac ticket, but the whole command
> does not work, since the input is too unbalanced.
> 
> 
> diff --git a/libavfilter/af_amerge.c b/libavfilter/af_amerge.c
> index e552682..f67a7a8 100644
> --- a/libavfilter/af_amerge.c
> +++ b/libavfilter/af_amerge.c
> @@ -260,6 +260,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples)
>  
>      outbuf->audio->nb_samples     = nb_samples;
>      outbuf->audio->channel_layout = outlink->channel_layout;
> +    outbuf->audio->channels       = outlink->channels;

LGTM, thanks.
-- 
FFmpeg = Fascinating & Fascinating Mean Pitiful Extravagant Glue


More information about the ffmpeg-devel mailing list