Ticket #3249: beastd-file-overwrite-hackish-partial-fix.diff

File beastd-file-overwrite-hackish-partial-fix.diff, 627 bytes (added by Alexander Strasser, 13 years ago)

Hackish change that fixes one part of this issue

  • ffmpeg_opt.c

    diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
    index d267c6d..8ac9a25 100644
    a b static void assert_file_overwrite(const char *filename)  
    700700    if (!file_overwrite &&
    701701        (strchr(filename, ':') == NULL || filename[1] == ':' ||
    702702         av_strstart(filename, "file:", NULL))) {
     703        if (av_strstart(filename, "file:", NULL)) {
     704            filename = filename + 5;
     705        }
    703706        if (avio_check(filename, 0) == 0) {
    704707            if (stdin_interaction && !no_file_overwrite) {
    705708                fprintf(stderr,"File '%s' already exists. Overwrite ? [y/N] ", filename);