aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-12-01 08:35:07 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2008-12-01 08:35:07 +0000
commit42d1d06e8f3ba5ca12d1a942a9a2100edd41eee6 (patch)
tree19a5a219aa24abbaa5fcdf145e55975658a8c70a /ffmpeg.c
parentc2902c9c66da8c5625eefc1c5a7fa277da254410 (diff)
downloadffmpeg-42d1d06e8f3ba5ca12d1a942a9a2100edd41eee6.tar.gz
Make more informative the error messages regarding the access to the
2-pass log file. Originally committed as revision 15970 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index e85b7a1d5a..55c8d38739 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1841,7 +1841,7 @@ static int av_encode(AVFormatContext **output_files,
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 **output_files,
/* 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);