mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
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>
This commit is contained in:
parent
bac1b31bf6
commit
3245be95ac
1 changed files with 3 additions and 3 deletions
|
|
@ -76,9 +76,9 @@ typedef struct {
|
||||||
|
|
||||||
static void print_csv_escaped_str(AVIOContext *ctx, const char *str)
|
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, '"');
|
avio_w8(ctx, '"');
|
||||||
|
|
||||||
for (; *str; str++) {
|
for (; *str; str++) {
|
||||||
|
|
@ -86,7 +86,7 @@ static void print_csv_escaped_str(AVIOContext *ctx, const char *str)
|
||||||
avio_w8(ctx, '"');
|
avio_w8(ctx, '"');
|
||||||
avio_w8(ctx, *str);
|
avio_w8(ctx, *str);
|
||||||
}
|
}
|
||||||
if (quote)
|
if (needs_quoting)
|
||||||
avio_w8(ctx, '"');
|
avio_w8(ctx, '"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue