diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-05-26 20:58:13 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-05-29 01:02:47 +0200 |
commit | c365cdf2028aaefd92f44b0924596f35d165ebda (patch) | |
tree | d75bcafa8dad234e58753966728ebc7da26366ad /ffprobe.c | |
parent | 6994b552a6a425eaa996346d68f937ee70023844 (diff) | |
download | ffmpeg-c365cdf2028aaefd92f44b0924596f35d165ebda.tar.gz |
ffprobe: add support to '\b' and '\f' escaping in c_escape_str()
Diffstat (limited to 'ffprobe.c')
-rw-r--r-- | ffprobe.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -505,6 +505,8 @@ static const char *c_escape_str(AVBPrint *dst, const char *src, const char sep, for (p = src; *p; p++) { switch (*src) { + case '\b': av_bprintf(dst, "%s", "\\b"); break; + case '\f': av_bprintf(dst, "%s", "\\f"); break; case '\n': av_bprintf(dst, "%s", "\\n"); break; case '\r': av_bprintf(dst, "%s", "\\r"); break; case '\\': av_bprintf(dst, "%s", "\\\\"); break; |