diff options
author | wm4 <wm4@nowhere> | 2012-11-03 15:57:40 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-07 23:29:55 +0100 |
commit | 58f821e096392e27994102f6de6f8f76c63e38e1 (patch) | |
tree | 3afdabf9addc8ba44923cca4a1f4d96413c61886 /cfg-mplayer.h | |
parent | a20c9576be916f8e0bad66bd474c5241d05852e4 (diff) | |
download | mpv-58f821e096392e27994102f6de6f8f76c63e38e1.tar.bz2 mpv-58f821e096392e27994102f6de6f8f76c63e38e1.tar.xz |
vd_ffmpeg: disable codec direct rendering and slices by default
This caused failures when doing single threaded decoding in some cases.
It's unknown what exactly the reasons are for these failures, but
direct rendering is probably worthless anyway.
Disable slices by default as well, just to be sure not to invoke broken
code paths. Multithreading disables these too.
The old behavior can be restored by passing the -dr1 -slices command
line options. (-dr1 is left undocumented intentionally.)
Multithreaded decoding worked fine, because vd_ffmpeg.c automatically
disables direct rendering in this case.
Diffstat (limited to 'cfg-mplayer.h')
-rw-r--r-- | cfg-mplayer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h index 48f44a6fde..c0f4c91a9c 100644 --- a/cfg-mplayer.h +++ b/cfg-mplayer.h @@ -489,6 +489,8 @@ const m_option_t common_opts[] = { // draw by slices or whole frame (useful with libmpeg2/libavcodec) OPT_MAKE_FLAGS("slices", vd_use_slices, 0), + // use (probably completely broken) decoder direct rendering + OPT_MAKE_FLAGS("dr1", vd_use_dr1, 0), {"field-dominance", &field_dominance, CONF_TYPE_INT, CONF_RANGE, -1, 1, NULL}, {"lavdopts", (void *) lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |