mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 19:00:20 -06:00
FF-1246: fixed cpu decoder reported when no decoder
This commit is contained in:
@@ -113,9 +113,16 @@ public class FFMpegEncoder
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(arguments.Any(x => x.Contains(":v:")))
|
||||
else
|
||||
{
|
||||
decoder = "CPU";
|
||||
var index = arguments.FindIndex(x => x.Contains("-c:v:"));
|
||||
if (index > 0 && index < arguments.Count - 2)
|
||||
{
|
||||
if(arguments[index + 1] != "copy")
|
||||
decoder = "CPU";
|
||||
else
|
||||
OnStatChange?.Invoke("Decoder", "Copy", recordStatistic: false);
|
||||
}
|
||||
}
|
||||
|
||||
if (decoder != null)
|
||||
|
||||
Reference in New Issue
Block a user