Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .github/workflows/c-cpp.yml

This file was deleted.

75 changes: 0 additions & 75 deletions .github/workflows/cmake-multi-platform.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/msbuild.yml

This file was deleted.

Empty file removed .vs/CMake Overview
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
114 changes: 0 additions & 114 deletions AudioAnalyzer.cpp

This file was deleted.

35 changes: 0 additions & 35 deletions AudioAnalyzer.h

This file was deleted.

41 changes: 41 additions & 0 deletions AudioCombiner.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
using System.Diagnostics;
using System.Windows.Forms;

namespace FeedFetcher
{
public static class AudioCombiner
{
public static void CombineFiles(string[] inputFiles, string outputFile)
{
// Use FFmpeg to combine files
string input = string.Join("|", inputFiles);
string args = $"-y -i \"concat:{input}\" -c copy {outputFile}";
var psi = new ProcessStartInfo
{
FileName = "ffmpeg",
Arguments = args,

Check failure on line 16 in AudioCombiner.cs

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

AudioCombiner.cs#L16

OS command injection is a critical vulnerability that can lead to a full system compromise as it may allow an adversary to pass in arbitrary commands or arguments to be executed.
UseShellExecute = false,
RedirectStandardOutput = true,
RedirectStandardError = true,
CreateNoWindow = true
};
try
{
using (var process = Process.Start(psi))

Check failure on line 24 in AudioCombiner.cs

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

AudioCombiner.cs#L24

OS command injection is a critical vulnerability that can lead to a full system compromise as it may allow an adversary to pass in arbitrary commands or arguments to be executed.
{
string output = process.StandardOutput.ReadToEnd();

Check warning on line 26 in AudioCombiner.cs

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

AudioCombiner.cs#L26

Remove the unused local variable 'output'.
string error = process.StandardError.ReadToEnd();
process.WaitForExit();
if (process.ExitCode != 0)

Check notice on line 29 in AudioCombiner.cs

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

AudioCombiner.cs#L29

Add curly braces around the nested statement(s) in this 'if' block.
MessageBox.Show($"Error combining files: {error}", "Error");
else

Check notice on line 31 in AudioCombiner.cs

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

AudioCombiner.cs#L31

Add curly braces around the nested statement(s) in this 'else' block.
MessageBox.Show("Files combined successfully.", "Success");
}
}
catch

Check warning on line 35 in AudioCombiner.cs

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

AudioCombiner.cs#L35

Catch a list of specific exception subtype or use exception filters instead.
{
MessageBox.Show("Failed to start FFmpeg process. Ensure FFmpeg is installed and in PATH.", "Error");
}
}
}
}
Loading