Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
ffmpeg2theora
Commits
2dac0765
Commit
2dac0765
authored
Dec 22, 2009
by
Jan Gerber
Browse files
fix json/metadata in --info
parent
5a0a2a1f
Changes
2
Show whitespace changes
Inline
Side-by-side
ffmpegrev
View file @
2dac0765
FFMPEG_REVISION=20
760
FFMPEG_REVISION=20
906
FFMPEG_CO_DIR=ffmpeg
FFMPEG_CO_DIR=ffmpeg
FFMPEG_SVN=svn://svn.ffmpeg.org/ffmpeg/trunk
FFMPEG_SVN=svn://svn.ffmpeg.org/ffmpeg/trunk
# Because ffmpeg checks out libswscale via an svn:externals, checking
# Because ffmpeg checks out libswscale via an svn:externals, checking
# out an old ffmpeg does not check out a corresponding libswscale.
# out an old ffmpeg does not check out a corresponding libswscale.
# Keep the swscale checkout manually synchronized, then. Update this
# Keep the swscale checkout manually synchronized, then. Update this
# when you update FFMPEG_REVISION.
# when you update FFMPEG_REVISION.
FFMPEG_EXTERNALS_REVISION=
29978
FFMPEG_EXTERNALS_REVISION=
30099
src/avinfo.c
View file @
2dac0765
...
@@ -100,7 +100,6 @@ char *replace_str_all(char *str, char *orig, char *rep) {
...
@@ -100,7 +100,6 @@ char *replace_str_all(char *str, char *orig, char *rep) {
const
char
buffer
[
4096
];
const
char
buffer
[
4096
];
char
*
p
,
*
p_str
=
str
,
*
p_buffer
=
(
char
*
)
buffer
;
char
*
p
,
*
p_str
=
str
,
*
p_buffer
=
(
char
*
)
buffer
;
int
len
=
strlen
(
str
);
int
len
=
strlen
(
str
);
strncpy
(
p_buffer
,
str
,
len
);
strncpy
(
p_buffer
,
str
,
len
);
while
(
p
=
strstr
(
p_str
,
orig
))
{
while
(
p
=
strstr
(
p_str
,
orig
))
{
strncpy
(
p_buffer
,
p_str
,
p
-
p_str
);
strncpy
(
p_buffer
,
p_str
,
p
-
p_str
);
...
@@ -110,7 +109,8 @@ char *replace_str_all(char *str, char *orig, char *rep) {
...
@@ -110,7 +109,8 @@ char *replace_str_all(char *str, char *orig, char *rep) {
p_str
=
p
+
strlen
(
orig
);
p_str
=
p
+
strlen
(
orig
);
p_buffer
+=
strlen
(
rep
);
p_buffer
+=
strlen
(
rep
);
}
}
p
=
(
char
*
)
buffer
;
p
=
malloc
(
len
+
1
);
strncpy
(
p
,
buffer
,
len
);
p
[
len
]
=
'\0'
;
p
[
len
]
=
'\0'
;
return
p
;
return
p
;
}
}
...
@@ -139,6 +139,7 @@ void json_add_key_value(FILE *output, char *key, void *value, int type, int last
...
@@ -139,6 +139,7 @@ void json_add_key_value(FILE *output, char *key, void *value, int type, int last
p
=
replace_str_all
(
p
,
"
\\
"
,
"
\\\\
"
);
p
=
replace_str_all
(
p
,
"
\\
"
,
"
\\\\
"
);
p
=
replace_str_all
(
p
,
"
\"
"
,
"
\\\"
"
);
p
=
replace_str_all
(
p
,
"
\"
"
,
"
\\\"
"
);
fprintf
(
output
,
"
\"
%s
\"
:
\"
%s
\"
"
,
key
,
p
);
fprintf
(
output
,
"
\"
%s
\"
:
\"
%s
\"
"
,
key
,
p
);
free
(
p
);
break
;
break
;
case
JSON_INT
:
case
JSON_INT
:
fprintf
(
output
,
"
\"
%s
\"
: %d"
,
key
,
*
(
int
*
)
value
);
fprintf
(
output
,
"
\"
%s
\"
: %d"
,
key
,
*
(
int
*
)
value
);
...
...
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