From 3c3f5fee88e107cd49f1a5a6decb8634715f7fb4 Mon Sep 17 00:00:00 2001 From: Portisch Date: Sun, 2 Feb 2025 20:30:36 +0100 Subject: [PATCH] AMLCodec: change NAL skip policy for DV dual layer Use start decode after first I frame to have dual layer in sync. --- xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp index 88beb410c7a..e73ab0218b2 100644 --- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp +++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp @@ -2128,6 +2128,10 @@ bool CAMLCodec::OpenDecoder(CDVDStreamInfo &hints, enum ELType dovi_el_type) am_private->gcodec.param = (void*)EXTERNAL_PTS; if (m_hints.ptsinvalid) am_private->gcodec.param = (void*)(EXTERNAL_PTS | SYNC_OUTSIDE); + if (am_private->gcodec.dec_mode == STREAM_TYPE_STREAM) + CSysfsPath("/sys/module/amvdec_h265/parameters/nal_skip_policy", 1); + else + CSysfsPath("/sys/module/amvdec_h265/parameters/nal_skip_policy", 2); break; case VFORMAT_H266: am_private->gcodec.format = VIDEO_DEC_FORMAT_H266;