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
c365cdf2
Commit
c365cdf2
authored
May 26, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: add support to '\b' and '\f' escaping in c_escape_str()
parent
6994b552
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ffprobe.texi
doc/ffprobe.texi
+3
-3
ffprobe.c
ffprobe.c
+2
-0
No files found.
doc/ffprobe.texi
View file @
c365cdf2
...
@@ -245,9 +245,9 @@ Set the escape mode to use, default to "c".
...
@@ -245,9 +245,9 @@ Set the escape mode to use, default to "c".
It can assume one of the following values:
It can assume one of the following values:
@table @option
@table @option
@item c
@item c
Perform C-like escaping. Strings containing a newline ('
\n
')
or
Perform C-like escaping. Strings containing a newline ('
\n
')
, carriage
carriage return ('
\r
'), the escaping character ('
\'
) or the item
return ('
\r
'), a tab ('
\t
'), a form feed ('
\f
'), the escaping
separator character @var
{
SEP
}
are escaped using C-like fashioned
character ('
\'
) or the item
separator character @var
{
SEP
}
are escaped using C-like fashioned
escaping, so that a newline is converted to the sequence "
\n
", a
escaping, so that a newline is converted to the sequence "
\n
", a
carriage return to "
\r
", '
\'
to "
\\
" and the separator @var
{
SEP
}
is
carriage return to "
\r
", '
\'
to "
\\
" and the separator @var
{
SEP
}
is
converted to "
\@
var
{
SEP
}
".
converted to "
\@
var
{
SEP
}
".
...
...
ffprobe.c
View file @
c365cdf2
...
@@ -505,6 +505,8 @@ static const char *c_escape_str(AVBPrint *dst, const char *src, const char sep,
...
@@ -505,6 +505,8 @@ static const char *c_escape_str(AVBPrint *dst, const char *src, const char sep,
for
(
p
=
src
;
*
p
;
p
++
)
{
for
(
p
=
src
;
*
p
;
p
++
)
{
switch
(
*
src
)
{
switch
(
*
src
)
{
case
'\b'
:
av_bprintf
(
dst
,
"%s"
,
"
\\
b"
);
break
;
case
'\f'
:
av_bprintf
(
dst
,
"%s"
,
"
\\
f"
);
break
;
case
'\n'
:
av_bprintf
(
dst
,
"%s"
,
"
\\
n"
);
break
;
case
'\n'
:
av_bprintf
(
dst
,
"%s"
,
"
\\
n"
);
break
;
case
'\r'
:
av_bprintf
(
dst
,
"%s"
,
"
\\
r"
);
break
;
case
'\r'
:
av_bprintf
(
dst
,
"%s"
,
"
\\
r"
);
break
;
case
'\\'
:
av_bprintf
(
dst
,
"%s"
,
"
\\\\
"
);
break
;
case
'\\'
:
av_bprintf
(
dst
,
"%s"
,
"
\\\\
"
);
break
;
...
...
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