Browse Source

dv: zero dsp before init, this fixes use of uninitialized dct_bits

Fixes CID732292
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
5e689b65ce
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/dv.c

+ 1
- 0
libavcodec/dv.c View File

@@ -297,6 +297,7 @@ av_cold int ff_dvvideo_init(AVCodecContext *avctx)
}

/* Generic DSP setup */
memset(&dsp,0, sizeof(dsp));
ff_dsputil_init(&dsp, avctx);
ff_set_cmp(&dsp, dsp.ildct_cmp, avctx->ildct_cmp);
s->get_pixels = dsp.get_pixels;


Loading…
Cancel
Save