avcodec/huffyuvdec: Don't zero unnecessarily

A decoder's private data has already been zeroed (apart from options)
before init is called.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/7.1
Andreas Rheinhardt 1 year ago
parent 2d79ae3f8a
commit cebf1d59a5
  1. 1
      libavcodec/huffyuvdec.c

@ -346,7 +346,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
ff_bswapdsp_init(&s->bdsp);
ff_huffyuvdsp_init(&s->hdsp, avctx->pix_fmt);
ff_llviddsp_init(&s->llviddsp);
memset(s->vlc, 0, 4 * sizeof(VLC));
s->interlaced = avctx->height > 288;
s->bgr32 = 1;

Loading…
Cancel
Save