Fix broken hardware encoder and filter for trickplay (#11506)

This commit is contained in:
gnattu
2024-05-07 21:23:28 +08:00
committed by GitHub
parent aaa42871ca
commit 4044431610
2 changed files with 3 additions and 1 deletions

View File

@@ -848,7 +848,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
inputArg = "-threads " + threads + " " + inputArg; // HW accel args set a different input thread count, only set if disabled
}
var filterParam = encodingHelper.GetVideoProcessingFilterParam(jobState, options, jobState.OutputVideoCodec).Trim();
var filterParam = encodingHelper.GetVideoProcessingFilterParam(jobState, options, vidEncoder).Trim();
if (string.IsNullOrWhiteSpace(filterParam))
{
throw new InvalidOperationException("EncodingHelper returned empty or invalid filter parameters.");