[FFmpeg-cvslog] r15970 - trunk/ffmpeg.c
stefano
subversion
Mon Dec 1 09:35:07 CET 2008
Author: stefano
Date: Mon Dec 1 09:35:07 2008
New Revision: 15970
Log:
Make more informative the error messages regarding the access to the
2-pass log file.
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c (original)
+++ trunk/ffmpeg.c Mon Dec 1 09:35:07 2008
@@ -1841,7 +1841,7 @@ static int av_encode(AVFormatContext **o
if (codec->flags & CODEC_FLAG_PASS1) {
f = fopen(logfilename, "w");
if (!f) {
- perror(logfilename);
+ fprintf(stderr, "Cannot write log file '%s' for pass-1 encoding: %s\n", logfilename, strerror(errno));
av_exit(1);
}
ost->logfile = f;
@@ -1849,7 +1849,7 @@ static int av_encode(AVFormatContext **o
/* read the log file */
f = fopen(logfilename, "r");
if (!f) {
- perror(logfilename);
+ fprintf(stderr, "Cannot read log file '%s' for pass-2 encoding: %s\n", logfilename, strerror(errno));
av_exit(1);
}
fseek(f, 0, SEEK_END);
More information about the ffmpeg-cvslog
mailing list