[FFmpeg-cvslog] r9412 - in trunk: libavformat/rtpproto.c libavutil/internal.h vhook/ppm.c
reimar
subversion
Sun Jun 24 14:23:34 CEST 2007
Author: reimar
Date: Sun Jun 24 14:23:34 2007
New Revision: 9412
Log:
more av_strl* adjustments
Modified:
trunk/libavformat/rtpproto.c
trunk/libavutil/internal.h
trunk/vhook/ppm.c
Modified: trunk/libavformat/rtpproto.c
==============================================================================
--- trunk/libavformat/rtpproto.c (original)
+++ trunk/libavformat/rtpproto.c Sun Jun 24 14:23:34 2007
@@ -25,6 +25,7 @@
#include <stdarg.h>
#include "network.h"
#include <fcntl.h>
+#include "avstring.h"
#define RTP_TX_BUF_SIZE (64 * 1024)
#define RTP_RX_BUF_SIZE (128 * 1024)
Modified: trunk/libavutil/internal.h
==============================================================================
--- trunk/libavutil/internal.h (original)
+++ trunk/libavutil/internal.h Sun Jun 24 14:23:34 2007
@@ -241,7 +241,7 @@ if((y)<(x)){\
#define rand rand_is_forbidden_due_to_state_trashing
#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 strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat
#define exit exit_is_forbidden
#if !(defined(LIBAVFORMAT_BUILD) || defined(_FRAMEHOOK_H))
#define printf please_use_av_log
Modified: trunk/vhook/ppm.c
==============================================================================
--- trunk/vhook/ppm.c (original)
+++ trunk/vhook/ppm.c Sun Jun 24 14:23:34 2007
@@ -28,6 +28,7 @@
#include "framehook.h"
#include "avformat.h"
#include "swscale.h"
+#include "avstring.h"
static int sws_flags = SWS_BICUBIC;
@@ -68,8 +69,8 @@ static rwpipe *rwpipe_open( int argc, ch
strcpy( command, "" );
for ( i = 0; i < argc; i ++ )
{
- pstrcat( command, COMMAND_SIZE, argv[ i ] );
- pstrcat( command, COMMAND_SIZE, " " );
+ av_strlcat( command, argv[ i ], COMMAND_SIZE );
+ av_strlcat( command, " ", COMMAND_SIZE );
}
dup2( output[ 0 ], STDIN_FILENO );
More information about the ffmpeg-cvslog
mailing list