Skip to content

Commit

Permalink
AMLCodec: change NAL skip policy for DV dual layer
Browse files Browse the repository at this point in the history
Use start decode after first I frame to have dual layer in sync.
  • Loading branch information
Portisch committed Feb 2, 2025
1 parent 9c55f2a commit 3c3f5fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/AMLCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3c3f5fe

Please sign in to comment.