diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-07-10 15:46:15 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-07-13 23:17:42 +0200 |
commit | 8c8eab8bfed74cceb4a04f982f349c7c17f5eb6f (patch) | |
tree | 3d47306d329cbe9ac589160c72a6818b17ae37e9 /cmdutils.h | |
parent | a9eb4f0899de04a3093a04f461611c6f0664398e (diff) | |
download | ffmpeg-8c8eab8bfed74cceb4a04f982f349c7c17f5eb6f.tar.gz |
cmdutils: store all codec options in one dict instead of video/audio/sub
Split them when codec id is known.
Diffstat (limited to 'cmdutils.h')
-rw-r--r-- | cmdutils.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ -152,6 +152,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. * |