Commit 3245be95 authored by Alexander Strasser's avatar Alexander Strasser

lavf/segment: Rename variable in print_csv_escaped_str()

Rename a local variable to make the code more self-explanatory.
Signed-off-by: 's avatarAlexander Strasser <eclipse7@gmx.net>
parent bac1b31b
......@@ -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, '"');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment