diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-31 19:51:03 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-01 11:05:38 +0200 |
commit | 7f452c099a47eb54131f4a36e6078471e24c39b4 (patch) | |
tree | bdc0445bdca3a3a4fc984e9de1b1a5f233ba6d79 /libavcodec/magicyuv.c | |
parent | e8716b7e4c600577f43bd8519dfb30b214830fde (diff) | |
download | ffmpeg-7f452c099a47eb54131f4a36e6078471e24c39b4.tar.gz |
avcodec/magicyuv: Don't zero unnecessarily
The code already checks that exactly the expected amount of entries are
read and set. Ergo it is unnecessary to zero them at the beginning.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/magicyuv.c')
-rw-r--r-- | libavcodec/magicyuv.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c index f2204f3401..9282b39723 100644 --- a/libavcodec/magicyuv.c +++ b/libavcodec/magicyuv.c @@ -453,7 +453,6 @@ static int build_huffman(AVCodecContext *avctx, GetBitContext *gbit, int max) MagicYUVContext *s = avctx->priv_data; int i = 0, j = 0, k; - memset(s->len, 0, sizeof(s->len)); while (get_bits_left(gbit) >= 8) { int b = get_bits(gbit, 1); int x = get_bits(gbit, 7); |