mirror of https://github.com/mpv-player/mpv
Mark muxer-related m_option_t arrays as const.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31000 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
637dd3d064
commit
51d72c7764
|
@ -74,7 +74,7 @@ static float mux_preload= 0.5;
|
||||||
static float mux_max_delay= 0.7;
|
static float mux_max_delay= 0.7;
|
||||||
static char *mux_avopt = NULL;
|
static char *mux_avopt = NULL;
|
||||||
|
|
||||||
m_option_t lavfopts_conf[] = {
|
const m_option_t lavfopts_conf[] = {
|
||||||
{"format", &(conf_format), CONF_TYPE_STRING, 0, 0, 0, NULL},
|
{"format", &(conf_format), CONF_TYPE_STRING, 0, 0, 0, NULL},
|
||||||
{"muxrate", &mux_rate, CONF_TYPE_INT, CONF_RANGE, 0, INT_MAX, NULL},
|
{"muxrate", &mux_rate, CONF_TYPE_INT, CONF_RANGE, 0, INT_MAX, NULL},
|
||||||
{"packetsize", &mux_packet_size, CONF_TYPE_INT, CONF_RANGE, 0, INT_MAX, NULL},
|
{"packetsize", &mux_packet_size, CONF_TYPE_INT, CONF_RANGE, 0, INT_MAX, NULL},
|
||||||
|
|
|
@ -208,7 +208,7 @@ typedef struct {
|
||||||
#define TELECINE_FILM2PAL 2
|
#define TELECINE_FILM2PAL 2
|
||||||
#define TELECINE_DGPULLDOWN 3
|
#define TELECINE_DGPULLDOWN 3
|
||||||
|
|
||||||
m_option_t mpegopts_conf[] = {
|
const m_option_t mpegopts_conf[] = {
|
||||||
{"format", &(conf_mux), CONF_TYPE_STRING, M_OPT_GLOBAL, 0 ,0, NULL},
|
{"format", &(conf_mux), CONF_TYPE_STRING, M_OPT_GLOBAL, 0 ,0, NULL},
|
||||||
{"size", &(conf_packet_size), CONF_TYPE_INT, M_OPT_GLOBAL|M_OPT_RANGE, 0, 65535, NULL},
|
{"size", &(conf_packet_size), CONF_TYPE_INT, M_OPT_GLOBAL|M_OPT_RANGE, 0, 65535, NULL},
|
||||||
{"muxrate", &(conf_muxrate), CONF_TYPE_INT, M_OPT_GLOBAL|M_OPT_RANGE, 0, 12000000, NULL}, //12 Mb/s
|
{"muxrate", &(conf_muxrate), CONF_TYPE_INT, M_OPT_GLOBAL|M_OPT_RANGE, 0, 12000000, NULL}, //12 Mb/s
|
||||||
|
|
Loading…
Reference in New Issue