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

stefano subversion
Fri Nov 21 23:56:08 CET 2008


Author: stefano
Date: Fri Nov 21 23:56:08 2008
New Revision: 15903

Log:
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.


Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Fri Nov 21 23:56:08 2008
@@ -3714,7 +3714,7 @@ static int opt_preset(const char *opt, c
         }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);
         }
     }




More information about the ffmpeg-cvslog mailing list