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
20026733
Commit
20026733
authored
Nov 02, 2009
by
Ramiro Polla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Indent.
Originally committed as revision 20436 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a75e1034
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ffmpeg.c
ffmpeg.c
+9
-9
No files found.
ffmpeg.c
View file @
20026733
...
...
@@ -3776,17 +3776,17 @@ static int opt_preset(const char *opt, const char *arg)
};
if
(
*
opt
!=
'f'
)
{
for
(
i
=!
base
[
0
];
i
<
2
&&
!
f
;
i
++
){
snprintf
(
filename
,
sizeof
(
filename
),
"%s%s/%s.ffpreset"
,
base
[
i
],
i
?
""
:
"/.ffmpeg"
,
arg
);
f
=
fopen
(
filename
,
"r"
);
if
(
!
f
){
char
*
codec_name
=
*
opt
==
'v'
?
video_codec_name
:
*
opt
==
'a'
?
audio_codec_name
:
subtitle_codec_name
;
snprintf
(
filename
,
sizeof
(
filename
),
"%s%s/%s-%s.ffpreset"
,
base
[
i
],
i
?
""
:
"/.ffmpeg"
,
codec_name
,
arg
);
for
(
i
=!
base
[
0
];
i
<
2
&&
!
f
;
i
++
){
snprintf
(
filename
,
sizeof
(
filename
),
"%s%s/%s.ffpreset"
,
base
[
i
],
i
?
""
:
"/.ffmpeg"
,
arg
);
f
=
fopen
(
filename
,
"r"
);
if
(
!
f
){
char
*
codec_name
=
*
opt
==
'v'
?
video_codec_name
:
*
opt
==
'a'
?
audio_codec_name
:
subtitle_codec_name
;
snprintf
(
filename
,
sizeof
(
filename
),
"%s%s/%s-%s.ffpreset"
,
base
[
i
],
i
?
""
:
"/.ffmpeg"
,
codec_name
,
arg
);
f
=
fopen
(
filename
,
"r"
);
}
}
}
}
else
{
av_strlcpy
(
filename
,
arg
,
sizeof
(
filename
));
f
=
fopen
(
filename
,
"r"
);
...
...
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