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
e9a9e0c2
Commit
e9a9e0c2
authored
Jan 23, 2003
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use av_strdup()
Originally committed as revision 1507 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0d4c5878
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
ffmpeg.c
ffmpeg.c
+4
-4
ffm.c
libavformat/ffm.c
+1
-1
fish.c
vhook/fish.c
+1
-1
imlib2.c
vhook/imlib2.c
+2
-2
No files found.
ffmpeg.c
View file @
e9a9e0c2
...
...
@@ -1870,7 +1870,7 @@ void opt_audio_channels(const char *arg)
void
opt_video_device
(
const
char
*
arg
)
{
video_device
=
strdup
(
arg
);
video_device
=
av_
strdup
(
arg
);
}
void
opt_video_channel
(
const
char
*
arg
)
...
...
@@ -1880,7 +1880,7 @@ void opt_video_channel(const char *arg)
void
opt_audio_device
(
const
char
*
arg
)
{
audio_device
=
strdup
(
arg
);
audio_device
=
av_
strdup
(
arg
);
}
void
opt_dv1394
(
const
char
*
arg
)
...
...
@@ -1916,7 +1916,7 @@ void add_frame_hooker(const char *arg)
int
argc
=
0
;
char
*
argv
[
64
];
int
i
;
char
*
args
=
strdup
(
arg
);
char
*
args
=
av_
strdup
(
arg
);
argv
[
0
]
=
strtok
(
args
,
" "
);
while
(
argc
<
62
&&
(
argv
[
++
argc
]
=
strtok
(
NULL
,
" "
)))
{
...
...
@@ -2812,7 +2812,7 @@ int main(int argc, char **argv)
}
if
(
po
->
flags
&
OPT_STRING
)
{
char
*
str
;
str
=
strdup
(
arg
);
str
=
av_
strdup
(
arg
);
*
po
->
u
.
str_arg
=
str
;
}
else
if
(
po
->
flags
&
OPT_BOOL
)
{
*
po
->
u
.
int_arg
=
1
;
...
...
libavformat/ffm.c
View file @
e9a9e0c2
...
...
@@ -421,7 +421,7 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
codec
->
qcompress
=
get_be16
(
pb
)
/
10000
.
0
;
codec
->
qblur
=
get_be16
(
pb
)
/
10000
.
0
;
codec
->
bit_rate_tolerance
=
get_be32
(
pb
);
codec
->
rc_eq
=
strdup
(
get_strz
(
pb
,
rc_eq_buf
,
sizeof
(
rc_eq_buf
)));
codec
->
rc_eq
=
av_
strdup
(
get_strz
(
pb
,
rc_eq_buf
,
sizeof
(
rc_eq_buf
)));
codec
->
rc_max_rate
=
get_be32
(
pb
);
codec
->
rc_min_rate
=
get_be32
(
pb
);
codec
->
rc_buffer_size
=
get_be32
(
pb
);
...
...
vhook/fish.c
View file @
e9a9e0c2
...
...
@@ -134,7 +134,7 @@ int Configure(void **ctxp, int argc, char *argv[])
ci
->
debug
++
;
break
;
case
'D'
:
ci
->
dir
=
strdup
(
optarg
);
ci
->
dir
=
av_
strdup
(
optarg
);
break
;
default:
fprintf
(
stderr
,
"Unrecognized argument '%s'
\n
"
,
argv
[
optind
]);
...
...
vhook/imlib2.c
View file @
e9a9e0c2
...
...
@@ -112,10 +112,10 @@ int Configure(void **ctxp, int argc, char *argv[])
font
=
optarg
;
break
;
case
't'
:
ci
->
text
=
strdup
(
optarg
);
ci
->
text
=
av_
strdup
(
optarg
);
break
;
case
'f'
:
ci
->
file
=
strdup
(
optarg
);
ci
->
file
=
av_
strdup
(
optarg
);
break
;
case
'x'
:
ci
->
x
=
atoi
(
optarg
);
...
...
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