Check the allocated pointer instead of the given pointer as intended
in vhook/ppm.c:Configure. patch by Erik Hovland, erik hovland org Originally committed as revision 14321 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
bbc35f515f
commit
582b354933
@ -211,7 +211,7 @@ int Configure(void **ctxp, int argc, char *argv[])
|
||||
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 ] );
|
||||
|
Loading…
Reference in New Issue
Block a user