stream_ffmpeg, demux_lavf: Use flv demuxer for rtmp streams
[mplayer/glamo.git] / defaultopts.c
blobb5917c53a7bf658b7e9d49dc8f2f1e6d5fed3b76
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 .edition_id = -1,
25 .user_correct_pts = -1,
26 .key_fifo_size = 7,
27 .doubleclick_time = 300,
28 .audio_id = -1,
29 .video_id = -1,
30 .sub_id = -1,
31 .playback_speed = 1.,
32 .movie_aspect = -1.,
33 .flip = -1,
34 .vd_use_slices = 1,
35 .lavc_param = {
36 .workaround_bugs = 1, // autodetect
37 .error_resilience = 2,
38 .error_concealment = 3,
39 .threads = 1,
41 .input = {
42 .config_file = "input.conf",
43 .ar_delay = 100,
44 .ar_rate = 8,
45 .use_joystick = 1,
46 .use_lirc = 1,
47 .use_lircc = 1,
48 #ifdef CONFIG_APPLE_REMOTE
49 .use_ar = 1,
50 #else
51 .use_ar = 0,
52 #endif
53 .default_bindings = 1,
58 void set_default_mencoder_options(struct MPOpts *opts)
60 set_default_mplayer_options(opts);
61 opts->user_correct_pts = 0;