diff --git a/mpv.c b/mpv.c index 7ba479c..2ac79a4 100644 --- a/mpv.c +++ b/mpv.c @@ -19,7 +19,7 @@ #include "menu_options.h" #include "mpv_service.h" -static const char *VERSION = "1.6.0" +static const char *VERSION = "1.6.1" #ifdef GIT_REV "-GIT" GIT_REV #endif diff --git a/player.c b/player.c index 3ef1398..d5292f3 100644 --- a/player.c +++ b/player.c @@ -553,6 +553,11 @@ void cMpvPlayer::PlayerStart() check_error(mpv_set_option_string(hMpv, "hwdec-codecs", "all")); check_error(mpv_set_option_string(hMpv, "vd-lavc-o", "deint=adaptive")); } + else if (strstr(MpvPluginConfig->HwDec.c_str(),"nvdec")) + { + check_error(mpv_set_option_string(hMpv, "hwdec-codecs", "all")); + check_error(mpv_set_option_string(hMpv, "vf", "bwdif_cuda=1:-1:1")); + } else { check_error(mpv_set_option_string(hMpv, "deinterlace", "yes")); @@ -585,7 +590,11 @@ void cMpvPlayer::PlayerStart() { check_error(mpv_set_option_string(hMpv, "audio-spdif", "ac3,dts")); if (MpvPluginConfig->UseDtsHdPassthrough) + { + check_error(mpv_set_option_string(hMpv, "ad-lavc-downmix", "no")); + check_error(mpv_set_option_string(hMpv, "audio-channels", "7.1,5.1,stereo")); check_error(mpv_set_option_string(hMpv, "audio-spdif", "ac3,dts,dts-hd,truehd,eac3")); + } } else {