aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/formats.h
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2015-03-14 21:21:49 +0100
committerClément Bœsch <u@pkh.me>2015-03-16 23:43:12 +0100
commitf861d9b2c64752b134d49cb9e790b77221c381c1 (patch)
treec6f43bc92e459df9698976679525333a5f1a6a84 /libavfilter/formats.h
parent93d9ce7cec48a4c6478bba4383613fca3f28740a (diff)
downloadffmpeg-f861d9b2c64752b134d49cb9e790b77221c381c1.tar.gz
avfilter/formats: proper error handling in ff_channel_layouts_ref() and ff_formats_ref()
Also make sure the allocation and its check are properly done.
Diffstat (limited to 'libavfilter/formats.h')
-rw-r--r--libavfilter/formats.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/formats.h b/libavfilter/formats.h
index 468eac86de..f94855dbe9 100644
--- a/libavfilter/formats.h
+++ b/libavfilter/formats.h
@@ -159,8 +159,8 @@ int ff_add_channel_layout(AVFilterChannelLayouts **l, uint64_t channel_layout);
/**
* Add *ref as a new reference to f.
*/
-void ff_channel_layouts_ref(AVFilterChannelLayouts *f,
- AVFilterChannelLayouts **ref);
+int ff_channel_layouts_ref(AVFilterChannelLayouts *f,
+ AVFilterChannelLayouts **ref);
/**
* Remove a reference to a channel layouts list.
@@ -233,7 +233,7 @@ AVFilterFormats *ff_merge_formats(AVFilterFormats *a, AVFilterFormats *b,
* | |____| | | |____|
* |________| |________________________
*/
-void ff_formats_ref(AVFilterFormats *formats, AVFilterFormats **ref);
+int ff_formats_ref(AVFilterFormats *formats, AVFilterFormats **ref);
/**
* If *ref is non-NULL, remove *ref as a reference to the format list