#include <sys/types.h>
#include <sys/wait.h>
#include <ctype.h>
-#include "framehook.h"
-#include "avformat.h"
-#include "swscale.h"
+#include "libavutil/avstring.h"
+#include "libavformat/framehook.h"
+#include "libavformat/avformat.h"
+#include "libswscale/swscale.h"
+#undef fprintf
static int sws_flags = SWS_BICUBIC;
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 );
if ( argc > 1 )
{
*ctxp = av_mallocz(sizeof(ContextInfo));
- if ( ctxp != NULL && argc > 1 )
+ if ( *ctxp != NULL && argc > 1 )
{
ContextInfo *info = (ContextInfo *)*ctxp;
info->rw = rwpipe_open( argc - 1, &argv[ 1 ] );