aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-11-21 22:56:08 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2008-11-21 22:56:08 +0000
commite178d7fd0f1ce141d94ac27d7a701a3d3f3ea217 (patch)
treee06bac08851ae039b5e166f1036142142f525d49
parentb04665ac028d26747396eaf4dbf9188225a6f2a1 (diff)
downloadffmpeg-e178d7fd0f1ce141d94ac27d7a701a3d3f3ea217.tar.gz
Make ffmpeg print in the error message the exact line of a preset file
containing an invalid option or value, and also how the option and the value have been parsed. Originally committed as revision 15903 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 9178e6335a..651fa71b81 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3714,7 +3714,7 @@ static int opt_preset(const char *opt, const char *arg)
}else if(!strcmp(tmp, "scodec")){
opt_subtitle_codec(tmp2);
}else if(opt_default(tmp, tmp2) < 0){
- fprintf(stderr, "%s: Invalid option or argument: %s=%s\n", filename, tmp, tmp2);
+ fprintf(stderr, "%s: Invalid option or argument: '%s', parsed as '%s' = '%s'\n", filename, line, tmp, tmp2);
av_exit(1);
}
}