From d68a759fa4dea2701087039c58961757eb246b4f Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 2 Aug 2014 03:12:09 +0200 Subject: Improve setting AVOptions Use OPT_KEYVALUELIST() for all places where AVOptions are directly set from mpv command line options. This allows escaping values, better diagnostics (also no more "pal"), and somehow reduces code size. Remove the old crappy option parser (av_opts.c). --- common/av_common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/av_common.h') diff --git a/common/av_common.h b/common/av_common.h index 4afebe6662..3168d5310d 100644 --- a/common/av_common.h +++ b/common/av_common.h @@ -27,6 +27,7 @@ struct mp_decoder_list; struct demux_packet; struct AVDictionary; +struct mp_log; int mp_lavc_set_extradata(AVCodecContext *avctx, void *ptr, int size); void mp_copy_lav_codec_headers(AVCodecContext *avctx, AVCodecContext *st); @@ -38,5 +39,7 @@ void mp_add_lavc_decoders(struct mp_decoder_list *list, enum AVMediaType type); int mp_codec_to_av_codec_id(const char *codec); const char *mp_codec_from_av_codec_id(int codec_id); void mp_set_avdict(struct AVDictionary **dict, char **kv); +void mp_avdict_print_unset(struct mp_log *log, int msgl, struct AVDictionary *d); +int mp_set_avopts(struct mp_log *log, void *avobj, char **kv); #endif -- cgit v1.2.3