A decoder's private data has already been zeroed (apart from options) before init is called.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -346,7 +346,6 @@ static av_cold int decode_init(AVCodecContext *avctx) · 345 unmodified lines | |||
| 346 | ff_bswapdsp_init(&s->bdsp); | 346 | ff_bswapdsp_init(&s->bdsp); |
| 347 | ff_huffyuvdsp_init(&s->hdsp, avctx->pix_fmt); | 347 | ff_huffyuvdsp_init(&s->hdsp, avctx->pix_fmt); |
| 348 | ff_llviddsp_init(&s->llviddsp); | 348 | ff_llviddsp_init(&s->llviddsp); |
| 349 | memset(s->vlc, 0, 4 * sizeof(VLC)); | ||
| 350 | 349 | ||
| 351 | s->interlaced = avctx->height > 288; | 350 | s->interlaced = avctx->height > 288; |
| 352 | s->bgr32 = 1; | 351 | s->bgr32 = 1; |