[FFmpeg-cvslog] r14321 - trunk/vhook/ppm.c
diego
subversion
Mon Jul 21 07:46:57 CEST 2008
Author: diego
Date: Mon Jul 21 07:46:56 2008
New Revision: 14321
Log:
Check the allocated pointer instead of the given pointer as intended
in vhook/ppm.c:Configure.
patch by Erik Hovland, erik hovland org
Modified:
trunk/vhook/ppm.c
Modified: trunk/vhook/ppm.c
==============================================================================
--- trunk/vhook/ppm.c (original)
+++ trunk/vhook/ppm.c Mon Jul 21 07:46:56 2008
@@ -211,7 +211,7 @@ int Configure(void **ctxp, int argc, cha
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 ] );
More information about the ffmpeg-cvslog
mailing list