From 8c8eab8bfed74cceb4a04f982f349c7c17f5eb6f Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 10 Jul 2011 15:46:15 +0200 Subject: cmdutils: store all codec options in one dict instead of video/audio/sub Split them when codec id is known. --- cmdutils.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cmdutils.h') diff --git a/cmdutils.h b/cmdutils.h index 02fcea4426..c581160318 100644 --- a/cmdutils.h +++ b/cmdutils.h @@ -43,7 +43,7 @@ extern const char **opt_names; extern AVCodecContext *avcodec_opts[AVMEDIA_TYPE_NB]; extern AVFormatContext *avformat_opts; extern struct SwsContext *sws_opts; -extern AVDictionary *format_opts, *video_opts, *audio_opts, *sub_opts; +extern AVDictionary *format_opts, *codec_opts; /** * Initialize the cmdutils option system, in particular @@ -151,6 +151,11 @@ void parse_options(int argc, char **argv, const OptionDef *options, void set_context_opts(void *ctx, void *opts_ctx, int flags, AVCodec *codec); +/** + * Filter out options for given codec. + */ +AVDictionary *filter_codec_opts(AVDictionary *opts, enum CodecID codec_id, int encoder); + /** * Print an error message to stderr, indicating filename and a human * readable description of the error code err. -- cgit v1.2.3