Skip to content

Commit 69c1c6e

Browse files
authored
Merge pull request #37 from ua0lnj/master
Version 1.6.1
2 parents 09e73a3 + 7de23e5 commit 69c1c6e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

mpv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "menu_options.h"
2020
#include "mpv_service.h"
2121

22-
static const char *VERSION = "1.6.0"
22+
static const char *VERSION = "1.6.1"
2323
#ifdef GIT_REV
2424
"-GIT" GIT_REV
2525
#endif

player.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,11 @@ void cMpvPlayer::PlayerStart()
553553
check_error(mpv_set_option_string(hMpv, "hwdec-codecs", "all"));
554554
check_error(mpv_set_option_string(hMpv, "vd-lavc-o", "deint=adaptive"));
555555
}
556+
else if (strstr(MpvPluginConfig->HwDec.c_str(),"nvdec"))
557+
{
558+
check_error(mpv_set_option_string(hMpv, "hwdec-codecs", "all"));
559+
check_error(mpv_set_option_string(hMpv, "vf", "bwdif_cuda=1:-1:1"));
560+
}
556561
else
557562
{
558563
check_error(mpv_set_option_string(hMpv, "deinterlace", "yes"));
@@ -585,7 +590,11 @@ void cMpvPlayer::PlayerStart()
585590
{
586591
check_error(mpv_set_option_string(hMpv, "audio-spdif", "ac3,dts"));
587592
if (MpvPluginConfig->UseDtsHdPassthrough)
593+
{
594+
check_error(mpv_set_option_string(hMpv, "ad-lavc-downmix", "no"));
595+
check_error(mpv_set_option_string(hMpv, "audio-channels", "7.1,5.1,stereo"));
588596
check_error(mpv_set_option_string(hMpv, "audio-spdif", "ac3,dts,dts-hd,truehd,eac3"));
597+
}
589598
}
590599
else
591600
{

0 commit comments

Comments
 (0)