Move aspect.c options to option struct
[mplayer.git] / defaultopts.c
blobc1822b6a148f3e93ff5999347248346af990e161
1 #include <stddef.h>
2 #include "defaultopts.h"
3 #include "options.h"
5 void set_default_mplayer_options(struct MPOpts *opts)
7 *opts = (const struct MPOpts){
8 .audio_driver_list = NULL,
9 .video_driver_list = NULL,
10 .fixed_vo = 0,
11 .monitor_pixel_aspect = 1.0,
12 .vo_panscanrange = 1.0,
13 .vo_gamma_gamma = 1000,
14 .vo_gamma_brightness = 1000,
15 .vo_gamma_contrast = 1000,
16 .vo_gamma_saturation = 1000,
17 .vo_gamma_hue = 1000,
18 .loop_times = -1,
19 .user_correct_pts = -1,
20 .key_fifo_size = 7,
21 .doubleclick_time = 300,
22 .audio_id = -1,
23 .video_id = -1,
24 .sub_id = -2,
25 .playback_speed = 1.,
26 .movie_aspect = -1.,
27 .flip = -1,
28 .vd_use_slices = 1,
29 .lavc_param = (struct lavc_param){
30 .workaround_bugs = 1, // autodetect
31 .error_resilience = 2,
32 .error_concealment = 3,
33 .threads = 1,
35 .input = (struct input_conf){
36 .config_file = "input.conf",
37 .ar_delay = 100,
38 .ar_rate = 8,
39 .use_joystick = 1,
40 .use_lirc = 1,
41 .use_lircc = 1,
42 .use_ar = 1,
47 void set_default_mencoder_options(struct MPOpts *opts)
49 set_default_mplayer_options(opts);
50 opts->user_correct_pts = 0;