diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2013-02-17 10:34:31 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2013-02-17 10:34:31 +0000 |
| commit | af58e8e8f9d08c1e276a9ba070eb4d44a6ca4950 (patch) | |
| tree | 1e3e627b331e62a1ec4d28e1bd2bd0d422096769 /tests/unit/testempty1.c | |
| parent | 4bf4a7668eaeaa4b02051afe06b8ec3e0d805de3 (diff) | |
[trunk] move to the new API for function opj_stream_create_default_file_stream. Use now opj_stream_create_default_file_stream_v3 (WIP)
Diffstat (limited to 'tests/unit/testempty1.c')
| -rw-r--r-- | tests/unit/testempty1.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/unit/testempty1.c b/tests/unit/testempty1.c index 32736485..17d16a17 100644 --- a/tests/unit/testempty1.c +++ b/tests/unit/testempty1.c @@ -71,7 +71,6 @@ int main(int argc, char *argv[]) opj_image_t *image; opj_codec_t* l_codec = 00; OPJ_BOOL bSuccess; - FILE *f; opj_stream_t *l_stream = 00; (void)argc; (void)argv; @@ -111,11 +110,7 @@ int main(int argc, char *argv[]) opj_setup_encoder(l_codec, ¶meters, image); - strcpy(parameters.outfile, "testempty1.j2k"); - f = fopen(parameters.outfile, "wb"); - assert( f ); - - l_stream = opj_stream_create_default_file_stream(f,OPJ_FALSE); + l_stream = opj_stream_create_default_file_stream_v3("testempty1.j2k",OPJ_FALSE); assert(l_stream); bSuccess = opj_start_compress(l_codec,image,l_stream); @@ -126,7 +121,6 @@ int main(int argc, char *argv[]) assert( bSuccess ); opj_stream_destroy_v3(l_stream); - fclose(f); opj_destroy_codec(l_codec); opj_image_destroy(image); |
