mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
Put pass_logfilename_prefix check on a single line, improve readability.
Originally committed as revision 16351 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -1837,8 +1837,8 @@ static int av_encode(AVFormatContext **output_files,
|
||||
char *logbuffer;
|
||||
|
||||
snprintf(logfilename, sizeof(logfilename), "%s-%d.log",
|
||||
pass_logfilename_prefix ?
|
||||
pass_logfilename_prefix : DEFAULT_PASS_LOGFILENAME_PREFIX, i);
|
||||
pass_logfilename_prefix ? pass_logfilename_prefix : DEFAULT_PASS_LOGFILENAME_PREFIX,
|
||||
i);
|
||||
if (codec->flags & CODEC_FLAG_PASS1) {
|
||||
f = fopen(logfilename, "w");
|
||||
if (!f) {
|
||||
|
||||
Reference in New Issue
Block a user