[Ffmpeg-cvslog] r8536 - in trunk: cmdutils.c ffmpeg.c ffplay.c ffserver.c libavutil/internal.h

michael subversion
Tue Mar 27 23:47:03 CEST 2007


Author: michael
Date: Tue Mar 27 23:47:03 2007
New Revision: 8536

Modified:
   trunk/cmdutils.c
   trunk/ffmpeg.c
   trunk/ffplay.c
   trunk/ffserver.c
   trunk/libavutil/internal.h

Log:
prevent exit missuse


Modified: trunk/cmdutils.c
==============================================================================
--- trunk/cmdutils.c	(original)
+++ trunk/cmdutils.c	Tue Mar 27 23:47:03 2007
@@ -24,6 +24,8 @@
 
 #include "cmdutils.h"
 
+#undef exit
+
 void show_help_options(const OptionDef *options, const char *msg, int mask, int value)
 {
     const OptionDef *po;

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Tue Mar 27 23:47:03 2007
@@ -55,6 +55,8 @@
 #define INFINITY HUGE_VAL
 #endif
 
+#undef exit
+
 /* select an input stream for an output stream */
 typedef struct AVStreamMap {
     int file_index;

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	(original)
+++ trunk/ffplay.c	Tue Mar 27 23:47:03 2007
@@ -49,6 +49,8 @@
  }
 #endif
 
+#undef exit
+
 //#define DEBUG_SYNC
 
 #define MAX_VIDEOQ_SIZE (5 * 256 * 1024)

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Tue Mar 27 23:47:03 2007
@@ -47,6 +47,8 @@
 #include "ffserver.h"
 #include "random.h"
 
+#undef exit
+
 /* maximum number of simultaneous HTTP connections */
 #define HTTP_MAX_CONNECTIONS 2000
 

Modified: trunk/libavutil/internal.h
==============================================================================
--- trunk/libavutil/internal.h	(original)
+++ trunk/libavutil/internal.h	Tue Mar 27 23:47:03 2007
@@ -251,6 +251,7 @@ if((y)<(x)){\
 #define srand srand_is_forbidden_due_to_state_trashing
 #define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf
 #define strcat strcat_is_forbidden_due_to_security_issues_use_pstrcat
+#define exit exit_is_forbidden
 #if !(defined(LIBAVFORMAT_BUILD) || defined(_FRAMEHOOK_H))
 #define printf please_use_av_log
 #define fprintf please_use_av_log




More information about the ffmpeg-cvslog mailing list