diff options
author | wm4 <wm4@nowhere> | 2014-06-11 01:46:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-11 01:46:20 +0200 |
commit | 654930aa47e10c07aa0399f515a8dd04d34efa3a (patch) | |
tree | d973ad7cac448ea9546ce5097a642dd1ff20234c /options | |
parent | 7f7aa03eda33c10264d72a674e6e7eadff052254 (diff) | |
download | mpv-654930aa47e10c07aa0399f515a8dd04d34efa3a.tar.bz2 mpv-654930aa47e10c07aa0399f515a8dd04d34efa3a.tar.xz |
demux_lavf: make option struct local
Similar to previous commits.
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 8 | ||||
-rw-r--r-- | options/options.h | 13 |
2 files changed, 3 insertions, 18 deletions
diff --git a/options/options.c b/options/options.c index 3875a38c89..c494a23dd3 100644 --- a/options/options.c +++ b/options/options.c @@ -62,11 +62,10 @@ extern const struct m_sub_options stream_dvb_conf; extern const struct m_sub_options sws_conf; extern const struct m_sub_options demux_rawaudio_conf; extern const struct m_sub_options demux_rawvideo_conf; +extern const struct m_sub_options demux_lavf_conf; extern const struct m_sub_options vd_lavc_conf; extern const struct m_sub_options ad_lavc_conf; -extern const m_option_t lavfdopts_conf[]; - extern const struct m_obj_list vf_obj_list; extern const struct m_obj_list af_obj_list; extern const struct m_obj_list vo_obj_list; @@ -279,7 +278,7 @@ const m_option_t mp_opts[] = { OPT_SUBSTRUCT("vd-lavc", vd_lavc_params, vd_lavc_conf, 0), OPT_SUBSTRUCT("ad-lavc", ad_lavc_params, ad_lavc_conf, 0), - {"demuxer-lavf", (void *) lavfdopts_conf, CONF_TYPE_SUBCONFIG}, + OPT_SUBSTRUCT("demuxer-lavf", demux_lavf, demux_lavf_conf, 0), OPT_SUBSTRUCT("demuxer-rawaudio", demux_rawaudio, demux_rawaudio_conf, 0), OPT_SUBSTRUCT("demuxer-rawvideo", demux_rawvideo, demux_rawvideo_conf, 0), @@ -646,9 +645,6 @@ const struct MPOpts mp_default_opts = { .mf_fps = 1.0, - .lavfdopts = { - .allow_mimetype = 1, - }, .input = { .key_fifo_size = 7, .doubleclick_time = 300, diff --git a/options/options.h b/options/options.h index f6e330d8c7..b87c64ed17 100644 --- a/options/options.h +++ b/options/options.h @@ -258,22 +258,11 @@ typedef struct MPOpts { struct demux_rawaudio_opts *demux_rawaudio; struct demux_rawvideo_opts *demux_rawvideo; + struct demux_lavf_opts *demux_lavf; struct vd_lavc_params *vd_lavc_params; struct ad_lavc_params *ad_lavc_params; - struct lavfdopts { - int probesize; - int probescore; - float analyzeduration; - int buffersize; - int allow_mimetype; - char *format; - char *cryptokey; - char *avopt; - int genptsmode; - } lavfdopts; - struct input_conf { char *config_file; int doubleclick_time; |