No deinterlacing for HVEC

This commit is contained in:
jojo61 2024-09-26 16:27:17 +02:00
parent 46df18afe0
commit 68fc7e4511
2 changed files with 5 additions and 2 deletions

View File

@ -61,7 +61,7 @@ extern void ToggleLUT();
/// vdr-plugin version number. /// vdr-plugin version number.
/// Makefile extracts the version number for generating the file name /// Makefile extracts the version number for generating the file name
/// for the distribution archive. /// for the distribution archive.
static const char *const VERSION = "3.24" static const char *const VERSION = "3.25"
#ifdef GIT_REV #ifdef GIT_REV
"-GIT" GIT_REV "-GIT" GIT_REV
#endif #endif

View File

@ -3004,7 +3004,10 @@ static enum AVPixelFormat Cuvid_get_format(CuvidDecoder *decoder, AVCodecContext
#ifdef CUVID #ifdef CUVID
ist->active_hwaccel_id = HWACCEL_CUVID; ist->active_hwaccel_id = HWACCEL_CUVID;
#else #else
if (VideoDeinterlace[decoder->Resolution]) {// need deinterlace if (video_ctx->codec_id == AV_CODEC_ID_HEVC) {
ist->filter = 0;
}
else if (VideoDeinterlace[decoder->Resolution]) {// need deinterlace
ist->filter = 1; // init deint vaapi ist->filter = 1; // init deint vaapi
} }
else { else {