[FFmpeg-cvslog] lavf/segment: Rename variable in print_csv_escaped_str()
Alexander Strasser
git at videolan.org
Sat Sep 15 23:05:08 CEST 2012
ffmpeg | branch: master | Alexander Strasser <eclipse7 at gmx.net> | Fri Sep 14 18:26:50 2012 +0200| [3245be95ace663a689b5a95ed76dc0708aae3285] | committer: 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: Alexander Strasser <eclipse7 at gmx.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3245be95ace663a689b5a95ed76dc0708aae3285
---
libavformat/segment.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 07b8da3..fbfd677 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, '"');
}
More information about the ffmpeg-cvslog
mailing list