From 4c48e911564b50d52042071792617ed09d927365 Mon Sep 17 00:00:00 2001 From: jojo61 Date: Tue, 18 Mar 2025 15:31:57 +0100 Subject: [PATCH] Reverse trust on interlace flag --- codec.c | 4 ++-- softhdcuvid.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/codec.c b/codec.c index 1def9e2..47ea6e2 100644 --- a/codec.c +++ b/codec.c @@ -489,7 +489,7 @@ void CodecVideoDecode(VideoDecoder *decoder, const AVPacket *avpkt) { } if (ret >= 0) { //printf("Videosize %d:%d ttf %d\n",frame->width,frame->height,frame->interlaced_frame); - if ((frame->flags & AV_FRAME_FLAG_INTERLACED) && decoder->filter) { + if (decoder->filter) { if (decoder->filter == 1) { if (init_filters(video_ctx, decoder->HwDecoder, frame) < 0) { Debug(3, "video: Init of VAAPI deint Filter failed\n"); @@ -560,7 +560,7 @@ next_part: // printf("video frame pts %#012" PRIx64 " //%dms\n",frame->pts,(int)(apts - frame->pts) / 90); #ifdef YADIF - if ((frame->flags & AV_FRAME_FLAG_INTERLACED) && decoder->filter) { + if (decoder->filter) { if (decoder->filter == 1) { if (init_filters(video_ctx, decoder->HwDecoder, frame) < 0) { Debug(3,"video: Init of YADIF Filter failed\n"); diff --git a/softhdcuvid.cpp b/softhdcuvid.cpp index f0a96d8..5efb995 100644 --- a/softhdcuvid.cpp +++ b/softhdcuvid.cpp @@ -61,7 +61,7 @@ extern void ToggleLUT(); /// vdr-plugin version number. /// Makefile extracts the version number for generating the file name /// for the distribution archive. -static const char *const VERSION = "3.30" +static const char *const VERSION = "3.31" #ifdef GIT_REV "-GIT" GIT_REV #endif