cmdutils: store all codec options in one dict instead of video/audio/sub

Split them when codec id is known.
This commit is contained in:
Anton Khirnov 2011-07-10 15:46:15 +02:00
parent a9eb4f0899
commit 8c8eab8bfe
2 changed files with 40 additions and 22 deletions

View file

@ -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.