浏览代码

Fix software decoder with videotoolbox encoder

Format should be placed before hwupload to support some software decoders

Signed-off-by: gnattu <gnattuoc@me.com>
gnattu 10 月之前
父节点
当前提交
808cd6f06a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

+ 1 - 1
MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

@@ -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);