2
0
Эх сурвалжийг харах

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 сар өмнө
parent
commit
808cd6f06a

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