[FFmpeg-cvslog] r15902 - trunk/ffmpeg.c

stefano subversion
Fri Nov 21 23:51:18 CET 2008


Author: stefano
Date: Fri Nov 21 23:51:17 2008
New Revision: 15902

Log:
Make ffmpeg print in the error message the exact line of a preset file
containing an invalid syntax.


Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Fri Nov 21 23:51:17 2008
@@ -3704,7 +3704,7 @@ static int opt_preset(const char *opt, c
             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")){




More information about the ffmpeg-cvslog mailing list