Skip to content

Commit

Permalink
Merge pull request #37 from ua0lnj/master
Browse files Browse the repository at this point in the history
Version 1.6.1
  • Loading branch information
ua0lnj authored Feb 26, 2024
2 parents 09e73a3 + 7de23e5 commit 69c1c6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mpv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions player.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 69c1c6e

Please sign in to comment.