diff options
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 8 | ||||
-rw-r--r-- | options/options.h | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 2c2fcc941d..65c6d7234e 100644 --- a/options/options.c +++ b/options/options.c @@ -405,6 +405,11 @@ const m_option_t mp_opts[] = { OPT_REL_TIME("end", play_end, 0), OPT_REL_TIME("length", play_length, 0), + OPT_CHOICE("play-direction", play_dir, 0, + ({"forward", 1}, {"backward", -1})), + OPT_BYTE_SIZE("video-reversal-buffer", video_reverse_size, 0, 0, (size_t)-1), + OPT_BYTE_SIZE("audio-reversal-buffer", audio_reverse_size, 0, 0, (size_t)-1), + OPT_FLAG("rebase-start-time", rebase_start_time, 0), OPT_TIME("ab-loop-a", ab_loop[0], 0, .min = MP_NOPTS_VALUE), @@ -937,6 +942,9 @@ const struct MPOpts mp_default_opts = { .audiofile_auto = -1, .osd_bar_visible = 1, .screenshot_template = "mpv-shot%n", + .play_dir = 1, + .video_reverse_size = 1 * 1024 * 1024 * 1024, + .audio_reverse_size = 64 * 1024 * 1024, .audio_output_channels = { .set = 1, diff --git a/options/options.h b/options/options.h index 5f7c560e71..26693221a3 100644 --- a/options/options.h +++ b/options/options.h @@ -224,6 +224,7 @@ typedef struct MPOpts { struct m_rel_time play_start; struct m_rel_time play_end; struct m_rel_time play_length; + int play_dir; int rebase_start_time; int play_frames; double ab_loop[2]; @@ -252,6 +253,8 @@ typedef struct MPOpts { int prefetch_open; char *audio_demuxer_name; char *sub_demuxer_name; + int64_t video_reverse_size; + int64_t audio_reverse_size; int cache_pause; int cache_pause_initial; |