diff options
Diffstat (limited to 'test/test.c')
| -rw-r--r-- | test/test.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test.c b/test/test.c index baedfb1..935e565 100644 --- a/test/test.c +++ b/test/test.c @@ -1,8 +1,10 @@ -#include "vdefine.h" -#define SIZE_BUFF 0xffffffff-1 +#include "av_format_identify.h" +#define SIZE_BUFF 0xfffffffff//0xffffffffffffffff #include <dirent.h> #include <sys/stat.h> #include <unistd.h> +#include <stdint.h> + typedef struct buff_inf_h { char *buff; @@ -13,7 +15,7 @@ buff_inf *buff_get(char *vfile) { buff_inf *buff_inf_h = (buff_inf *)malloc(sizeof(buff_inf)); FILE *fr = NULL; - char *buff_ori = (char *)malloc(sizeof(char *)*SIZE_BUFF); + char *buff_ori = (char *)malloc(sizeof(char)*SIZE_BUFF); char *buff = buff_ori; memset(buff, 0, sizeof(buff)); if ((fr = fopen(vfile, "rb")) == NULL) |
