Skip to content

Instantly share code, notes, and snippets.

@Janet-Baker
Janet-Baker / moveFileOnly.c
Last active November 9, 2023 10:42
some programs use ffmpeg to copy video that we do not want, removeing ffmpeg.exe will cause some unintended error, so we use this fake ffmpeg to avoid that.
#include <stdio.h>
int main(int argc, char *argv[]) {
if (argc < 2) {
printf("!!!DDTV DO NOT copy my files!!!\nUsage: \nMove this program to plugins/ffmpeg/ffmpeg.exe\n");
return 1;
}
char *input = NULL;
for (int i = 0; i < argc - 1; ++i) {
if (argv[i][0] == '-') {