diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-16 14:19:07 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-06-12 14:29:30 +0200 |
commit | 4c22b007809460ee0b3232dcf1f406fefd4567c7 (patch) | |
tree | 7fa55bae902187624efe533d62aa482a07dab967 /tests/api/api-band-test.c | |
parent | 89742b88c609be8fa276bcbed40088215d1ebf1a (diff) | |
download | ffmpeg-4c22b007809460ee0b3232dcf1f406fefd4567c7.tar.gz |
api/api-band-test: Remove write-only variable
Besides being write only it had the wrong type:
An uint8_t is definitely not enough to store the size
of these buffers.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/api/api-band-test.c')
-rw-r--r-- | tests/api/api-band-test.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/api/api-band-test.c b/tests/api/api-band-test.c index bbaa6edb58..d40e31b850 100644 --- a/tests/api/api-band-test.c +++ b/tests/api/api-band-test.c @@ -31,7 +31,6 @@ #include "libavutil/imgutils.h" uint8_t *slice_byte_buffer; -uint8_t slice_byte_buffer_size; int draw_horiz_band_called; static void draw_horiz_band(AVCodecContext *ctx, const AVFrame *fr, int offset[4], @@ -158,7 +157,6 @@ static int video_decode(const char *input_filename) return AVERROR(ENOMEM); } memset(slice_byte_buffer, 0, byte_buffer_size); - slice_byte_buffer_size = byte_buffer_size; result = 0; while (result >= 0) { |