aboutsummaryrefslogtreecommitdiffstats
path: root/ffprobe.c
diff options
context:
space:
mode:
authorAlexander Strasser <eclipse7@gmx.net>2012-09-17 01:31:44 +0200
committerAlexander Strasser <eclipse7@gmx.net>2012-09-25 01:32:19 +0200
commitdd83028374ea489f34d87bc6fa7547c644309d24 (patch)
tree26feb28fd19cd49ea01091117eb64fb2ca033085 /ffprobe.c
parentf70122dd574e95bb77993abbecaae9ba1020336f (diff)
downloadffmpeg-dd83028374ea489f34d87bc6fa7547c644309d24.tar.gz
ffprobe: Rename variable in csv_escape_str()
Sync to 3245be9 . Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 8a369ba1b8..ad94995169 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -567,9 +567,9 @@ static const char *c_escape_str(AVBPrint *dst, const char *src, const char sep,
*/
static const char *csv_escape_str(AVBPrint *dst, const char *src, const char sep, void *log_ctx)
{
- int quote = !!src[strcspn(src, "\",\n\r")];
+ int needs_quoting = !!src[strcspn(src, "\",\n\r")];
- if (quote)
+ if (needs_quoting)
av_bprint_chars(dst, '\"', 1);
for (; *src; src++) {
@@ -577,7 +577,7 @@ static const char *csv_escape_str(AVBPrint *dst, const char *src, const char sep
av_bprint_chars(dst, '\"', 1);
av_bprint_chars(dst, *src, 1);
}
- if (quote)
+ if (needs_quoting)
av_bprint_chars(dst, '\"', 1);
return dst->str;
}