aboutsummaryrefslogtreecommitdiffstats
path: root/avconv.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-03-12 17:43:48 +0100
committerAnton Khirnov <anton@khirnov.net>2012-03-13 12:21:44 +0100
commit64334ddbbc7fce490c895c54106291d0b128e830 (patch)
tree8bb70d345f0d032af2a8270852b92e63b4d1d442 /avconv.c
parent6e8be949f12734f38d360aad0f5c503a0f9606fa (diff)
downloadffmpeg-64334ddbbc7fce490c895c54106291d0b128e830.tar.gz
avconv: reindent
CC: libav-stable@libav.org
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/avconv.c b/avconv.c
index 518f8b8c8e..aebb510c41 100644
--- a/avconv.c
+++ b/avconv.c
@@ -2500,24 +2500,24 @@ static int transcode_init(OutputFile *output_files,
if (!strcmp(ost->enc->name, "libx264")) {
av_dict_set(&ost->opts, "stats", logfilename, AV_DICT_DONT_OVERWRITE);
} else {
- if (codec->flags & CODEC_FLAG_PASS1) {
- f = fopen(logfilename, "wb");
- if (!f) {
- av_log(NULL, AV_LOG_FATAL, "Cannot write log file '%s' for pass-1 encoding: %s\n",
- logfilename, strerror(errno));
- exit_program(1);
- }
- ost->logfile = f;
- } else {
- char *logbuffer;
- size_t logbuffer_size;
- if (cmdutils_read_file(logfilename, &logbuffer, &logbuffer_size) < 0) {
- av_log(NULL, AV_LOG_FATAL, "Error reading log file '%s' for pass-2 encoding\n",
- logfilename);
- exit_program(1);
+ if (codec->flags & CODEC_FLAG_PASS1) {
+ f = fopen(logfilename, "wb");
+ if (!f) {
+ av_log(NULL, AV_LOG_FATAL, "Cannot write log file '%s' for pass-1 encoding: %s\n",
+ logfilename, strerror(errno));
+ exit_program(1);
+ }
+ ost->logfile = f;
+ } else {
+ char *logbuffer;
+ size_t logbuffer_size;
+ if (cmdutils_read_file(logfilename, &logbuffer, &logbuffer_size) < 0) {
+ av_log(NULL, AV_LOG_FATAL, "Error reading log file '%s' for pass-2 encoding\n",
+ logfilename);
+ exit_program(1);
+ }
+ codec->stats_in = logbuffer;
}
- codec->stats_in = logbuffer;
- }
}
}
}