aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/formats.h
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2015-03-15 13:24:22 +0100
committerClément Bœsch <u@pkh.me>2015-03-16 23:43:12 +0100
commit545b0dd6aa30f392a9693b41c8f21e28c3dde0dd (patch)
tree40fa9cd314e445670e80f6367eebf3b96cdfc7a4 /libavfilter/formats.h
parentf861d9b2c64752b134d49cb9e790b77221c381c1 (diff)
downloadffmpeg-545b0dd6aa30f392a9693b41c8f21e28c3dde0dd.tar.gz
avfilter/formats: proper error handling in ff_set_common_*() functions
Diffstat (limited to 'libavfilter/formats.h')
-rw-r--r--libavfilter/formats.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/formats.h b/libavfilter/formats.h
index f94855dbe9..5a8ee5ed2f 100644
--- a/libavfilter/formats.h
+++ b/libavfilter/formats.h
@@ -142,17 +142,17 @@ AVFilterChannelLayouts *avfilter_make_format64_list(const int64_t *fmts);
* layouts/sample rates. If there are no links hooked to this filter, the list
* is freed.
*/
-void ff_set_common_channel_layouts(AVFilterContext *ctx,
- AVFilterChannelLayouts *layouts);
-void ff_set_common_samplerates(AVFilterContext *ctx,
- AVFilterFormats *samplerates);
+int ff_set_common_channel_layouts(AVFilterContext *ctx,
+ AVFilterChannelLayouts *layouts);
+int ff_set_common_samplerates(AVFilterContext *ctx,
+ AVFilterFormats *samplerates);
/**
* A helper for query_formats() which sets all links to the same list of
* formats. If there are no links hooked to this filter, the list of formats is
* freed.
*/
-void ff_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats);
+int ff_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats);
int ff_add_channel_layout(AVFilterChannelLayouts **l, uint64_t channel_layout);