Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-08 21:08:12 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-09 02:17:02 +0300
commitdc3f177b8f1913ed05401b3ab0ebf6bdc7052408 (patch)
treecfc39b3b0377f71f8cf791ecd235d4aeb8e68c5d /libavcodec/mjpegdec.c
parentea5016cd119c886c1e9caa5f9625fa7c208d6b95 (diff)
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>
Diffstat (limited to 'libavcodec/mjpegdec.c')
-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;