summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-01-01 13:30:42 +0100
committerClément Bœsch <ubitux@gmail.com>2013-01-01 13:32:51 +0100
commitd079d1d368a96e70ae76da7ad483b486fef2a8d2 (patch)
tree44cf8c0ce7e02015fd7ea8394de8a5cb221c4f57 /ffprobe.c
parentc1abfcd7d640449c590a4c73885f7e138bed6b71 (diff)
downloadffmpeg-d079d1d368a96e70ae76da7ad483b486fef2a8d2.tar.gz
ffprobe: do not escape '"' between single quotes.
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ffprobe.c b/ffprobe.c
index a98344b8b2..f70c24c084 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -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", "&amp;"); break;
case '<' : av_bprintf(dst, "%s", "&lt;"); break;
case '>' : av_bprintf(dst, "%s", "&gt;"); break;
- case '\"': av_bprintf(dst, "%s", "&quot;"); break;
+ case '"' : av_bprintf(dst, "%s", "&quot;"); break;
case '\'': av_bprintf(dst, "%s", "&apos;"); break;
default: av_bprint_chars(dst, *p, 1);
}