Browse Source

ffprobe/flat: add escape for '`' and '$'.

tags/n1.0
Clément Bœsch 13 years ago
parent
commit
bae99f7651
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ffprobe.c

+ 2
- 0
ffprobe.c View File

@@ -806,6 +806,8 @@ static const char *flat_escape_value_str(AVBPrint *dst, const char *src)
case '\r': av_bprintf(dst, "%s", "\\r"); break;
case '\\': av_bprintf(dst, "%s", "\\\\"); break;
case '"': av_bprintf(dst, "%s", "\\\""); break;
case '`': av_bprintf(dst, "%s", "\\`"); break;
case '$': av_bprintf(dst, "%s", "\\$"); break;
default: av_bprint_chars(dst, *p, 1); break;
}
}


Loading…
Cancel
Save