libdvdcss: Sync some minor changes from upstream, up to r237
[mplayer.git] / defaultopts.c
blob2cfeda063d5421bf19842fa5e98ce7a9826d19e1
1 #include <stddef.h>
3 #include "config.h"
4 #include "defaultopts.h"
5 #include "options.h"
7 void set_default_mplayer_options(struct MPOpts *opts)
9 *opts = (const struct MPOpts){
10 .audio_driver_list = NULL,
11 .video_driver_list = NULL,
12 .fixed_vo = 1,
13 .monitor_pixel_aspect = 1.0,
14 .vo_panscanrange = 1.0,
15 .vo_gamma_gamma = 1000,
16 .vo_gamma_brightness = 1000,
17 .vo_gamma_contrast = 1000,
18 .vo_gamma_saturation = 1000,
19 .vo_gamma_hue = 1000,
20 .osd_level = 1,
21 .osd_duration = 1000,
22 .loop_times = -1,
23 .ordered_chapters = 1,
24 .chapterrange = {-1, -1},
25 .edition_id = -1,
26 .user_correct_pts = -1,
27 .key_fifo_size = 7,
28 .doubleclick_time = 300,
29 .audio_id = -1,
30 .video_id = -1,
31 .sub_id = -1,
32 .playback_speed = 1.,
33 .drc_level = 1.,
34 .movie_aspect = -1.,
35 .flip = -1,
36 .vd_use_slices = 1,
37 .lavc_param = {
38 .workaround_bugs = 1, // autodetect
39 .error_resilience = 2,
40 .error_concealment = 3,
41 .threads = 1,
43 .input = {
44 .config_file = "input.conf",
45 .ar_delay = 100,
46 .ar_rate = 8,
47 .use_joystick = 1,
48 .use_lirc = 1,
49 .use_lircc = 1,
50 #ifdef CONFIG_APPLE_REMOTE
51 .use_ar = 1,
52 #else
53 .use_ar = 0,
54 #endif
55 .default_bindings = 1,
60 void set_default_mencoder_options(struct MPOpts *opts)
62 set_default_mplayer_options(opts);
63 opts->user_correct_pts = 0;