Fix software decoder with videotoolbox encoder

Format should be placed before hwupload to support some software decoders

Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
gnattu 2024-08-12 09:26:51 +08:00
parent f7227c6ca1
commit 808cd6f06a

View File

@ -5279,8 +5279,8 @@ namespace MediaBrowser.Controller.MediaEncoding
{
// INPUT videotoolbox/memory surface(vram/uma)
// this will pass-through automatically if in/out format matches.
mainFilters.Insert(0, "format=nv12|p010le|videotoolbox_vld");
mainFilters.Insert(0, "hwupload");
mainFilters.Insert(0, "format=nv12|p010le|videotoolbox_vld");
}
return (mainFilters, subFilters, overlayFilters);