Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
dde80688
Commit
dde80688
authored
Sep 16, 2012
by
Alexander Strasser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: Consider the chosen separator when doing CSV escaping
Signed-off-by:
Alexander Strasser
<
eclipse7@gmx.net
>
parent
dd830283
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ffprobe.c
ffprobe.c
+2
-1
No files found.
ffprobe.c
View file @
dde80688
...
...
@@ -567,7 +567,8 @@ 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
needs_quoting
=
!!
src
[
strcspn
(
src
,
"
\"
,
\n\r
"
)];
char
meta_chars
[]
=
{
sep
,
'"'
,
'\n'
,
'\r'
,
'\0'
};
int
needs_quoting
=
!!
src
[
strcspn
(
src
,
meta_chars
)];
if
(
needs_quoting
)
av_bprint_chars
(
dst
,
'\"'
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment