aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/cmdutils.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-07-14 17:19:28 +0200
committerAnton Khirnov <anton@khirnov.net>2023-07-20 20:47:46 +0200
commit87f0333af1810047fcd592f680c8d0a596bca7f6 (patch)
treede392224528d1e5c522dcb0c3fb88fe11c5decbf /fftools/cmdutils.h
parent6b8cf2505ab613fd365c276ed374caccb559f507 (diff)
downloadffmpeg-87f0333af1810047fcd592f680c8d0a596bca7f6.tar.gz
fftools/cmdutils: add error handling to filter_codec_opts()
Diffstat (limited to 'fftools/cmdutils.h')
-rw-r--r--fftools/cmdutils.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/fftools/cmdutils.h b/fftools/cmdutils.h
index 8c1bde2a2f..56b7f130af 100644
--- a/fftools/cmdutils.h
+++ b/fftools/cmdutils.h
@@ -333,10 +333,12 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec);
* @param st A stream from s for which the options should be filtered.
* @param codec The particular codec for which the options should be filtered.
* If null, the default one is looked up according to the codec id.
- * @return a pointer to the created dictionary
+ * @param dst a pointer to the created dictionary
+ * @return a non-negative number on success, a negative error code on failure
*/
-AVDictionary *filter_codec_opts(const AVDictionary *opts, enum AVCodecID codec_id,
- AVFormatContext *s, AVStream *st, const AVCodec *codec);
+int filter_codec_opts(const AVDictionary *opts, enum AVCodecID codec_id,
+ AVFormatContext *s, AVStream *st, const AVCodec *codec,
+ AVDictionary **dst);
/**
* Setup AVCodecContext options for avformat_find_stream_info().