diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-01-01 13:30:42 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-01-01 13:32:51 +0100 |
commit | d079d1d368a96e70ae76da7ad483b486fef2a8d2 (patch) | |
tree | 44cf8c0ce7e02015fd7ea8394de8a5cb221c4f57 /ffprobe.c | |
parent | c1abfcd7d640449c590a4c73885f7e138bed6b71 (diff) | |
download | ffmpeg-d079d1d368a96e70ae76da7ad483b486fef2a8d2.tar.gz |
ffprobe: do not escape '"' between single quotes.
Diffstat (limited to 'ffprobe.c')
-rw-r--r-- | ffprobe.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -642,15 +642,15 @@ static const char *csv_escape_str(AVBPrint *dst, const char *src, const char sep int needs_quoting = !!src[strcspn(src, meta_chars)]; if (needs_quoting) - av_bprint_chars(dst, '\"', 1); + av_bprint_chars(dst, '"', 1); for (; *src; src++) { if (*src == '"') - av_bprint_chars(dst, '\"', 1); + av_bprint_chars(dst, '"', 1); av_bprint_chars(dst, *src, 1); } if (needs_quoting) - av_bprint_chars(dst, '\"', 1); + av_bprint_chars(dst, '"', 1); return dst->str; } @@ -1254,7 +1254,7 @@ static const char *xml_escape_str(AVBPrint *dst, const char *src, void *log_ctx) case '&' : av_bprintf(dst, "%s", "&"); 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; case '\'': av_bprintf(dst, "%s", "'"); break; default: av_bprint_chars(dst, *p, 1); } |