Skip to content

Commit 7de23e5

Browse files
committed
Added deinterlace option for nvdec codec. Version 1.6.1.
1 parent dcaef0a commit 7de23e5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-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: 5 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"));

0 commit comments

Comments
 (0)