[FFmpeg-devel] [PATCH] lavd/lavfi: support unknown channel layouts.

Stefano Sabatini stefasab at gmail.com
Thu Oct 31 09:11:15 CET 2013


On date Monday 2013-10-28 11:56:52 +0100, Nicolas George encoded:
> Signed-off-by: Nicolas George <george at nsup.org>
> ---
>  libavdevice/lavfi.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
> index 559f721..a177ad0 100644
> --- a/libavdevice/lavfi.c
> +++ b/libavdevice/lavfi.c
> @@ -248,6 +248,10 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
>                  ret = av_opt_set_int_list(sink, "sample_fmts", sample_fmts,  AV_SAMPLE_FMT_NONE, AV_OPT_SEARCH_CHILDREN);
>              if (ret < 0)
>                  goto end;
> +            ret = av_opt_set_int(sink, "all_channel_counts", 1,
> +                                 AV_OPT_SEARCH_CHILDREN);
> +            if (ret < 0)
> +                goto end;
>          }
>  
>          lavfi->sinks[i] = sink;

LGTM if works, thanks.
-- 
FFmpeg = Faithful Friendly Mortal Philosofic Enlightening Glue


More information about the ffmpeg-devel mailing list