chore: add comment for the filter checking

Signed-off-by: gnattu <gnattuoc@me.com>
pull/11235/head
gnattu 2 months ago
parent 220e9e8d5b
commit 2c18014d63

@ -5166,6 +5166,9 @@ namespace MediaBrowser.Controller.MediaEncoding
subFilters.Any(f => !string.IsNullOrEmpty(f)) ||
overlayFilters.Any(f => !string.IsNullOrEmpty(f));
// This is a workaround for ffmpeg's hwupload implementation
// For VideoToolbox encoders, a hwupload without a valid filter actually consuming its frame
// will cause the encoder to produce incorrect frames.
if (needFiltering)
{
hwuploadFilters.AddRange(mainFilters);

Loading…
Cancel
Save