mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Indent.
Originally committed as revision 20436 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a75e103432
commit
200267333c
18
ffmpeg.c
18
ffmpeg.c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user