-
-enomem:
- av_frame_free(&s->last_frame);
- av_frame_free(&s->best_frame);
- av_frame_free(&s->scratch_frame);
- if (avctx->pix_fmt == AV_PIX_FMT_RGB24)
- av_frame_free(&s->input_frame);
- av_freep(&s->codebook_input);
- av_freep(&s->codebook_closest);
- av_freep(&s->strip_buf);
- av_freep(&s->frame_buf);
- av_freep(&s->mb);
-
- for (x = 0; x < (avctx->pix_fmt == AV_PIX_FMT_RGB24 ? 4 : 3); x++)
- av_freep(&s->pict_bufs[x]);
-
- return AVERROR(ENOMEM);