Kyle_Katarn
25th October 2005, 11:19
Still on my way to solve the Vfw Crashed here comes a new patch :
In vfw/codec.c
/* */
LRESULT compress_end(CODEC * codec)
{
if( codec->h != NULL )
{
x264_encoder_close( codec->h );
codec->h = NULL;
}
free( codec->hCons );
codec->hCons = NULL;
return ICERR_OK;
}
replaced by
/* */
LRESULT compress_end(CODEC * codec)
{
if( codec->h != NULL )
{
x264_encoder_close( codec->h );
codec->h = NULL;
}
if( codec->hCons != NULL )
{
free( codec->hCons );
codec->hCons = NULL;
}
return ICERR_OK;
}
In vfw/codec.c
/* */
LRESULT compress_end(CODEC * codec)
{
if( codec->h != NULL )
{
x264_encoder_close( codec->h );
codec->h = NULL;
}
free( codec->hCons );
codec->hCons = NULL;
return ICERR_OK;
}
replaced by
/* */
LRESULT compress_end(CODEC * codec)
{
if( codec->h != NULL )
{
x264_encoder_close( codec->h );
codec->h = NULL;
}
if( codec->hCons != NULL )
{
free( codec->hCons );
codec->hCons = NULL;
}
return ICERR_OK;
}