X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=cmdutils.h;h=4773c3d3f45904e9f414734d9a1dbe77ad5c6c72;hb=f5ecc4c616397d657aca9cceef396a0a281c53c9;hp=85b6c55835a57c47baf6d4877511967d76fc29bd;hpb=c5db8b4d09762f5228eaf3c3a0017657ed27d866;p=ffmpeg diff --git a/cmdutils.h b/cmdutils.h index 85b6c55835a..4773c3d3f45 100644 --- a/cmdutils.h +++ b/cmdutils.h @@ -76,6 +76,8 @@ int opt_default(const char *opt, const char *arg); */ int opt_loglevel(const char *opt, const char *arg); +int opt_codec_debug(const char *opt, const char *arg); + /** * Limit the execution time. */ @@ -158,6 +160,12 @@ typedef struct { void show_help_options(const OptionDef *options, const char *msg, int mask, int value); +/** + * Show help for all options with given flags in class and all its + * children. + */ +void show_help_children(const AVClass *class, int flags); + /** * Parse the command line arguments. * @@ -188,7 +196,7 @@ void parse_loglevel(int argc, char **argv, const OptionDef *options); * * @param s Corresponding format context. * @param st Stream from s to be checked. - * @param spec A stream specifier of the [v|a|s|d]:[] form. + * @param spec A stream specifier of the [v|a|s|d]:[\] form. * * @return 1 if the stream matches, 0 if it doesn't, <0 on error */ @@ -204,7 +212,7 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec); * @param st A stream from s for which the options should be filtered. * @return a pointer to the created dictionary */ -AVDictionary *filter_codec_opts(AVDictionary *opts, enum CodecID codec_id, AVFormatContext *s, AVStream *st); +AVDictionary *filter_codec_opts(AVDictionary *opts, AVCodec *codec, AVFormatContext *s, AVStream *st); /** * Setup AVCodecContext options for avformat_find_stream_info(). @@ -315,7 +323,7 @@ int read_yesno(void); * @return 0 in case of success, a negative value corresponding to an * AVERROR error code in case of failure. */ -int read_file(const char *filename, char **bufptr, size_t *size); +int cmdutils_read_file(const char *filename, char **bufptr, size_t *size); /** * Get a file corresponding to a preset file. @@ -354,4 +362,4 @@ void exit_program(int ret); */ void *grow_array(void *array, int elem_size, int *size, int new_size); -#endif /* LIBAV_CMDUTILS_H */ +#endif /* CMDUTILS_H */