-static int init_thread_copy(AVCodecContext *avctx)
-{
- WavpackContext *s = avctx->priv_data;
- s->avctx = avctx;
-
- s->curr_frame.f = av_frame_alloc();
- s->prev_frame.f = av_frame_alloc();
-
- if (!s->curr_frame.f || !s->prev_frame.f)
- return AVERROR(ENOMEM);
-
- return 0;
-}
-