diff options
author | Alexander Strasser <eclipse7@gmx.net> | 2012-09-14 18:26:50 +0200 |
---|---|---|
committer | Alexander Strasser <eclipse7@gmx.net> | 2012-09-15 22:58:11 +0200 |
commit | 3245be95ace663a689b5a95ed76dc0708aae3285 (patch) | |
tree | 4772b127413e03d4a9ea83c2e592319b4af4c048 | |
parent | bac1b31bf63554bd9e0e38ef06125234aff41dc9 (diff) | |
download | ffmpeg-3245be95ace663a689b5a95ed76dc0708aae3285.tar.gz |
lavf/segment: Rename variable in print_csv_escaped_str()
Rename a local variable to make the code more self-explanatory.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
-rw-r--r-- | libavformat/segment.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c index 07b8da3e2a..fbfd677079 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -76,9 +76,9 @@ typedef struct { static void print_csv_escaped_str(AVIOContext *ctx, const char *str) { - int quote = !!str[strcspn(str, "\",\n\r")]; + int needs_quoting = !!str[strcspn(str, "\",\n\r")]; - if (quote) + if (needs_quoting) avio_w8(ctx, '"'); for (; *str; str++) { @@ -86,7 +86,7 @@ static void print_csv_escaped_str(AVIOContext *ctx, const char *str) avio_w8(ctx, '"'); avio_w8(ctx, *str); } - if (quote) + if (needs_quoting) avio_w8(ctx, '"'); } |