[FFmpeg-devel] [RFC] libavfilter query_format() related functions error handling
Michael Niedermayer
michaelni at gmx.at
Sat Mar 14 13:19:54 CET 2015
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150314/a01c8906/attachment.asc>
More information about the ffmpeg-devel
mailing list