From 012b2277aeedddfc3084dd49d63347d95c981b13 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 31 Jul 2023 12:00:19 +0200 Subject: [PATCH] examples: removed unneeded variables --- examples/decode_to_cuda_pnm.c | 2 -- examples/decode_to_pnm.c | 2 -- examples/decode_to_raw_rgb.c | 2 -- 3 files changed, 6 deletions(-) diff --git a/examples/decode_to_cuda_pnm.c b/examples/decode_to_cuda_pnm.c index 32c65d6..36db6a0 100644 --- a/examples/decode_to_cuda_pnm.c +++ b/examples/decode_to_cuda_pnm.c @@ -68,8 +68,6 @@ static int decode(const char *input_filename, struct decode_data *d) gpujpeg_decoder_output_set_custom_cuda(&decoder_output, d->d_output_image); // decompress the image - uint8_t *image_decompressed = NULL; - size_t image_decompressed_size = 0; if (gpujpeg_decoder_decode(d->decoder, d->input_image, input_image_size, &decoder_output) != 0) { return 1; } diff --git a/examples/decode_to_pnm.c b/examples/decode_to_pnm.c index a23c297..4647f08 100644 --- a/examples/decode_to_pnm.c +++ b/examples/decode_to_pnm.c @@ -48,8 +48,6 @@ static int decode(const char *input_filename, struct decode_data *d) gpujpeg_decoder_output_set_default(&decoder_output); // decompress the image - uint8_t *image_decompressed = NULL; - size_t image_decompressed_size = 0; if (gpujpeg_decoder_decode(d->decoder, d->input_image, input_image_size, &decoder_output) != 0) { return 1; } diff --git a/examples/decode_to_raw_rgb.c b/examples/decode_to_raw_rgb.c index baaf5f2..88a4994 100644 --- a/examples/decode_to_raw_rgb.c +++ b/examples/decode_to_raw_rgb.c @@ -48,8 +48,6 @@ static int decode(const char *input_filename, struct decode_data *d) gpujpeg_decoder_output_set_default(&decoder_output); // decompress the image - uint8_t *image_decompressed = NULL; - size_t image_decompressed_size = 0; if (gpujpeg_decoder_decode(d->decoder, d->input_image, input_image_size, &decoder_output) != 0) { return 1; }