static av_cold int cinepak_encode_end(AVCodecContext *avctx)

{

    CinepakEncContext *s = avctx->priv_data;

    int x;



    av_free(s->codebook_input);

    av_free(s->codebook_closest);

    av_free(s->strip_buf);

    av_free(s->frame_buf);

    av_free(s->mb);

#ifdef CINEPAKENC_DEBUG

    av_free(s->best_mb);

#endif



    for(x = 0; x < 3; x++)

        av_free(s->pict_bufs[x]);



    av_log(avctx, AV_LOG_INFO, "strip coding stats: %i V1 mode, %i V4 mode, %i MC mode (%i V1 encs, %i V4 encs, %i skips)\n",

        s->num_v1_mode, s->num_v4_mode, s->num_mc_mode, s->num_v1_encs, s->num_v4_encs, s->num_skips);



    return 0;

}

static av_cold int cinepak_encode_end(AVCodecContext *avctx)

{

    CinepakEncContext *s = avctx->priv_data;

    int x;



    av_free(s->codebook_input);

    av_free(s->codebook_closest);

    av_free(s->strip_buf);

    av_free(s->frame_buf);

    av_free(s->mb);

#ifdef CINEPAKENC_DEBUG

    av_free(s->best_mb);

#endif



    for(x = 0; x < 3; x++)

        av_free(s->pict_bufs[x]);



    av_log(avctx, AV_LOG_INFO, "strip coding stats: %i V1 mode, %i V4 mode, %i MC mode (%i V1 encs, %i V4 encs, %i skips)\n",

        s->num_v1_mode, s->num_v4_mode, s->num_mc_mode, s->num_v1_encs, s->num_v4_encs, s->num_skips);



    return 0;

}

#endif     for(x = 0; x < 3; x++)     av_free(s->codebook_input);     av_free(s->codebook_closest);     av_free(s->strip_buf);     av_free(s->frame_buf);     av_free(s->mb);     av_free(s->best_mb);     for(x = 0; x < 3; x++)         av_free(s->pict_bufs[x]);     return 0;     av_free(s->codebook_input);     av_free(s->codebook_closest);     av_free(s->strip_buf);     av_free(s->frame_buf);     av_free(s->mb);     av_free(s->best_mb);     for(x = 0; x < 3; x++)         av_free(s->pict_bufs[x]);
static av_cold int FUNC_0(AVCodecContext *avctx)

{

    CinepakEncContext *s = avctx->priv_data;

    int VAR_0;



    av_free(s->codebook_input);

    av_free(s->codebook_closest);

    av_free(s->strip_buf);

    av_free(s->frame_buf);

    av_free(s->mb);

#ifdef CINEPAKENC_DEBUG

    av_free(s->best_mb);

#endif



    for(VAR_0 = 0; VAR_0 < 3; VAR_0++)

        av_free(s->pict_bufs[VAR_0]);



    av_log(avctx, AV_LOG_INFO, "strip coding stats: %i V1 mode, %i V4 mode, %i MC mode (%i V1 encs, %i V4 encs, %i skips)\n",

        s->num_v1_mode, s->num_v4_mode, s->num_mc_mode, s->num_v1_encs, s->num_v4_encs, s->num_skips);



    return 0;

}

static av_cold int FUNC_0(AVCodecContext *avctx)
{ CinepakEncContext *s = avctx->priv_data; int VAR_0; av_free(s->codebook_input); av_free(s->codebook_closest); av_free(s->strip_buf); av_free(s->frame_buf); av_free(s->mb); #ifdef CINEPAKENC_DEBUG
av_free(s->best_mb); #endif
for(VAR_0 = 0; VAR_0 < 3; VAR_0++) av_free(s->pict_bufs[VAR_0]); av_log(avctx, AV_LOG_INFO, "strip coding stats: %i V1 mode, %i V4 mode, %i MC mode (%i V1 encs, %i V4 encs, %i skips)\n",
s->num_v1_mode, s->num_v4_mode, s->num_mc_mode, s->num_v1_encs, s->num_v4_encs, s->num_skips); return 0; }