From 26d973ce827555619405bf62db24bf4ae12a4a90 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 30 Jul 2014 01:15:42 +0200 Subject: 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. --- options/options.c | 2 ++ options/options.h | 1 + 2 files changed, 3 insertions(+) (limited to 'options') 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; -- cgit v1.2.3