diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-11-21 22:51:17 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-11-21 22:51:17 +0000 |
commit | b04665ac028d26747396eaf4dbf9188225a6f2a1 (patch) | |
tree | d4f4cfa9c539635de5f3ad090daaecfa503b494b /ffmpeg.c | |
parent | 148c31b9c2ee8df91485f7ae55224fafe1555e1a (diff) | |
download | ffmpeg-b04665ac028d26747396eaf4dbf9188225a6f2a1.tar.gz |
Make ffmpeg print in the error message the exact line of a preset file
containing an invalid syntax.
Originally committed as revision 15902 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3704,7 +3704,7 @@ static int opt_preset(const char *opt, const char *arg) continue; e|= sscanf(line, "%999[^=]=%999[^\n]\n", tmp, tmp2) - 2; if(e){ - fprintf(stderr, "%s: Preset file invalid\n", filename); + fprintf(stderr, "%s: Invalid syntax: '%s'\n", filename, line); av_exit(1); } if(!strcmp(tmp, "acodec")){ |