[FFmpeg-devel] [PATCH 2/2] ffprobe: Rename variable in csv_escape_str()
Alexander Strasser
eclipse7 at gmx.net
Tue Sep 18 23:11:28 CEST 2012
Sync to 3245be9 .
Signed-off-by: Alexander Strasser <eclipse7 at gmx.net>
---
ffprobe.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ffprobe.c b/ffprobe.c
index a226d0d..aad5d90 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -566,9 +566,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++) {
@@ -576,7 +576,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;
}
--
1.7.10.2.552.gaa3bb87
More information about the ffmpeg-devel
mailing list