mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 18:15:44 +00:00
fix extension is not png lost path
This commit is contained in:
parent
3c316505c0
commit
c063043271
1 changed files with 7 additions and 7 deletions
|
|
@ -361,7 +361,7 @@ namespace FFMpegCore
|
||||||
processArguments.OutputDataReceived += (e, data) =>
|
processArguments.OutputDataReceived += (e, data) =>
|
||||||
{
|
{
|
||||||
var codec = parser(data);
|
var codec = parser(data);
|
||||||
if(codec != null)
|
if (codec != null)
|
||||||
if (codecs.TryGetValue(codec.Name, out var parentCodec))
|
if (codecs.TryGetValue(codec.Name, out var parentCodec))
|
||||||
parentCodec.Merge(codec);
|
parentCodec.Merge(codec);
|
||||||
else
|
else
|
||||||
|
|
@ -408,7 +408,7 @@ namespace FFMpegCore
|
||||||
{
|
{
|
||||||
if (!GlobalFFOptions.Current.UseCache)
|
if (!GlobalFFOptions.Current.UseCache)
|
||||||
return GetCodecsInternal().Values.Where(x => x.Type == type).ToList().AsReadOnly();
|
return GetCodecsInternal().Values.Where(x => x.Type == type).ToList().AsReadOnly();
|
||||||
return FFMpegCache.Codecs.Values.Where(x=>x.Type == type).ToList().AsReadOnly();
|
return FFMpegCache.Codecs.Values.Where(x => x.Type == type).ToList().AsReadOnly();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IReadOnlyList<Codec> GetVideoCodecs() => GetCodecs(CodecType.Video);
|
public static IReadOnlyList<Codec> GetVideoCodecs() => GetCodecs(CodecType.Video);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue