aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-08 20:08:12 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-09 01:17:02 +0200
commitdc3f177b8f1913ed05401b3ab0ebf6bdc7052408 (patch)
treecfc39b3b0377f71f8cf791ecd235d4aeb8e68c5d
parentea5016cd119c886c1e9caa5f9625fa7c208d6b95 (diff)
downloadffmpeg-dc3f177b8f1913ed05401b3ab0ebf6bdc7052408.tar.gz
avcodec/mjpegdec: Remove redundant initialization
Now that the correct number of codes is used, it is no longer necessary to initialize the lengths of the codes at all any more as the length of the actually used codes is set later anyway. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavcodec/mjpegdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index a56afc0fb7..147dd819e5 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -69,7 +69,7 @@ static int build_vlc(VLC *vlc, const uint8_t *bits_table,
const uint8_t *val_table, int nb_codes,
int is_ac)
{
- uint8_t huff_size[256] = { 0 };
+ uint8_t huff_size[256];
uint16_t huff_code[256];
uint16_t huff_sym[256];
int i;