diff options
| author | Xiaoqing MA <[email protected]> | 2018-07-10 19:42:35 +0800 |
|---|---|---|
| committer | Xiaoqing MA <[email protected]> | 2018-07-10 19:42:35 +0800 |
| commit | b8ef3feccf8e73f6f3bd7970c33605e56ad2e403 (patch) | |
| tree | 5966c03fa097687a6f1f2341ed401345a1c669bd /test | |
| parent | da0c28aaa758f1c90dd174dcf4d5608d49c76f13 (diff) | |
new ed14
Diffstat (limited to 'test')
| -rw-r--r-- | test/test.c | 24 | ||||
| -rw-r--r-- | test/test_dir.c | 6 |
2 files changed, 15 insertions, 15 deletions
diff --git a/test/test.c b/test/test.c index 2121589..baedfb1 100644 --- a/test/test.c +++ b/test/test.c @@ -64,20 +64,20 @@ int main(int argc, char *argv[]) size = (buff_inf_h->size / divide_h)*(divide_e - divide_s); ret = AV_container_identify(buff_inf_h->buff + (buff_inf_h->size / divide_h)*divide_s, size); } - else - { - ret = AV_container_identify(buff_inf_h->buff, buff_inf_h->size); - } + else + { + ret = AV_container_identify(buff_inf_h->buff, buff_inf_h->size); + } if (sig_show_all == 0) { if (ret != ret_sig) { printf("-----------------data of [%s] is kind of [%d].\n",vfile,ret); printf("size of whole buff is %d.\n", buff_inf_h->size); - if (sig_choose_all == 0) - { - printf("size of chosen buff is %d.\n", size); - } + if (sig_choose_all == 0) + { + printf("size of chosen buff is %d.\n", size); + } } } @@ -85,10 +85,10 @@ int main(int argc, char *argv[]) { printf("-----------------data of [%s] is kind of [%d].\n", vfile, ret); printf("size of whole buff is %d.\n", buff_inf_h->size); - if (sig_choose_all == 0) - { - printf("size of chosen buff is %d.\n", size); - } + if (sig_choose_all == 0) + { + printf("size of chosen buff is %d.\n", size); + } } free(buff_inf_h->buff); buff_inf_h->buff = NULL; diff --git a/test/test_dir.c b/test/test_dir.c index 14a8a62..d100872 100644 --- a/test/test_dir.c +++ b/test/test_dir.c @@ -15,7 +15,7 @@ buff_inf *buff_get(char *vfile) { FILE *fr = NULL; char *buff_ori = (char *)malloc(sizeof(char *)*SIZE_BUFF); - char *buff = buff_ori;//CH + char *buff = buff_ori; memset(buff, 0, sizeof(buff)); if ((fr = fopen(vfile, "rb")) == NULL) { @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) divide_e = 1;//atoi(argv[7]);//1; size = (buff_inf_h->size / divide_h)*(divide_e - divide_s); - ret = AV_container_identify(buff_inf_h->buff + (buff_inf_h->size / divide_h)*divide_s, size);;//CCH--ret = AV_container_identify(buff, size);//CH--(const char *)? + ret = AV_container_identify(buff_inf_h->buff + (buff_inf_h->size / divide_h)*divide_s, size); } else ret = AV_container_identify(buff_inf_h->buff, buff_inf_h->size); @@ -109,7 +109,7 @@ int main(int argc, char *argv[]) free(buff_inf_h); buff_inf_h = NULL; } - + free(vfile); free(vfile_ori); |
