--- trunk/vfw/src/driverproc.c 2002/03/22 13:39:01 60 +++ trunk/vfw/src/driverproc.c 2002/03/23 06:58:56 61 @@ -23,7 +23,6 @@ * * History: * - * ... ??? * 01.12.2001 inital version; (c)2001 peter ross * *************************************************************************/ @@ -74,7 +73,9 @@ { return DRV_CANCEL; } + codec = malloc(sizeof(CODEC)); + if (codec == NULL) { if (icopen != NULL) @@ -83,9 +84,17 @@ } return 0; } + codec->ehandle = codec->dhandle = NULL; config_reg_get(&codec->config); + /* bad things happen if this is uncommented + if (lstrcmp(XVID_BUILD, codec->config.build)) + { + config_reg_default(&codec->config); + } + */ + if (icopen != NULL) { icopen->dwError = ICERR_OK;