On Sat, Mar 14, 2015 at 12:18:51PM +0100, Clément Bœsch wrote:
> Hi,
> 
> I'm adding error handling in the following functions:
> 
>   ff_formats_ref()
>   ff_channel_layouts_ref()
>   ff_set_common_formats()
>   ff_set_common_samplerates()
>   ff_set_common_channel_layouts()
> 
> (I may have forgotten some)
[...]
> What do you think?

static int query_formats(AVFilterContext *ctx)
{
    static const enum AVSampleFormat sample_fmts[] = {
        AV_SAMPLE_FMT_U8P, AV_SAMPLE_FMT_S16P, AV_SAMPLE_FMT_S32P,
        AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_DBLP,
        AV_SAMPLE_FMT_NONE
    };

    ff_set_common_channel_layouts(ctx, ff_all_channel_layouts());
    ff_set_common_formats(ctx, ff_make_format_list(sample_fmts));
    ff_set_common_samplerates(ctx, ff_all_samplerates());

    return ctx->ff_errno;

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to