summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-30 01:15:42 +0200
committerwm4 <wm4@nowhere>2014-07-30 01:15:42 +0200
commit26d973ce827555619405bf62db24bf4ae12a4a90 (patch)
tree1b5f97301adca8ac102d6b530ebbc04d604dd47b /options
parentda780309d707ac995941c14d1f5bbc8f1a7239b8 (diff)
downloadmpv-26d973ce827555619405bf62db24bf4ae12a4a90.tar.bz2
mpv-26d973ce827555619405bf62db24bf4ae12a4a90.tar.xz
stream_lavf: allow setting AVOptions with --stream-lavf-o
This commit also creates a private option struct for stream_lavf.c, but since I'm lazy, I'm not moving any existing options to it.
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 955526f740..0d7f426606 100644
--- a/options/options.c
+++ b/options/options.c
@@ -63,6 +63,7 @@ extern const struct m_sub_options tv_params_conf;
extern const struct m_sub_options stream_pvr_conf;
extern const struct m_sub_options stream_cdda_conf;
extern const struct m_sub_options stream_dvb_conf;
+extern const struct m_sub_options stream_lavf_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;
@@ -229,6 +230,7 @@ const m_option_t mp_opts[] = {
#if HAVE_DVBIN
OPT_SUBSTRUCT("dvbin", stream_dvb_opts, stream_dvb_conf, 0),
#endif
+ OPT_SUBSTRUCT("", stream_lavf_opts, stream_lavf_conf, 0),
// ------------------------- a-v sync options --------------------
diff --git a/options/options.h b/options/options.h
index 51867b9cc9..b7db8b08ce 100644
--- a/options/options.h
+++ b/options/options.h
@@ -250,6 +250,7 @@ typedef struct MPOpts {
struct pvr_params *stream_pvr_opts;
struct cdda_params *stream_cdda_opts;
struct dvb_params *stream_dvb_opts;
+ struct stream_lavf_params *stream_lavf_opts;
char *cdrom_device;
int dvd_title;