static int libschroedinger_encode_close(AVCodecContext *avctx)

{

    SchroEncoderParams *p_schro_params = avctx->priv_data;



    /* Close the encoder. */

    schro_encoder_free(p_schro_params->encoder);



    /* Free data in the output frame queue. */

    ff_schro_queue_free(&p_schro_params->enc_frame_queue,

                        libschroedinger_free_frame);





    /* Free the encoder buffer. */

    if (p_schro_params->enc_buf_size)

        av_freep(&p_schro_params->enc_buf);



    /* Free the video format structure. */

    av_freep(&p_schro_params->format);



    return 0;

}

static int libschroedinger_encode_close(AVCodecContext *avctx)

{

    SchroEncoderParams *p_schro_params = avctx->priv_data;



    

    schro_encoder_free(p_schro_params->encoder);



    

    ff_schro_queue_free(&p_schro_params->enc_frame_queue,

                        libschroedinger_free_frame);





    

    if (p_schro_params->enc_buf_size)

        av_freep(&p_schro_params->enc_buf);



    

    av_freep(&p_schro_params->format);



    return 0;

}

    return 0;     return 0;     av_freep(&p_schro_params->format);     return 0;     SchroEncoderParams *p_schro_params = avctx->priv_data;     SchroEncoderParams *p_schro_params = avctx->priv_data;     return 0;     SchroEncoderParams *p_schro_params = avctx->priv_data;     SchroEncoderParams *p_schro_params = avctx->priv_data;         av_freep(&p_schro_params->enc_buf); static int libschroedinger_encode_close(AVCodecContext *avctx)     SchroEncoderParams *p_schro_params = avctx->priv_data;     schro_encoder_free(p_schro_params->encoder);     ff_schro_queue_free(&p_schro_params->enc_frame_queue,                         libschroedinger_free_frame);     if (p_schro_params->enc_buf_size)         av_freep(&p_schro_params->enc_buf);     av_freep(&p_schro_params->format);     return 0;
static int FUNC_0(AVCodecContext *VAR_0)

{

    SchroEncoderParams *p_schro_params = VAR_0->priv_data;



    

    schro_encoder_free(p_schro_params->encoder);



    

    ff_schro_queue_free(&p_schro_params->enc_frame_queue,

                        libschroedinger_free_frame);





    

    if (p_schro_params->enc_buf_size)

        av_freep(&p_schro_params->enc_buf);



    

    av_freep(&p_schro_params->format);



    return 0;

}

static int FUNC_0(AVCodecContext *VAR_0)
{ SchroEncoderParams *p_schro_params = VAR_0->priv_data; schro_encoder_free(p_schro_params->encoder); ff_schro_queue_free(&p_schro_params->enc_frame_queue,
libschroedinger_free_frame); if (p_schro_params->enc_buf_size)
av_freep(&p_schro_params->enc_buf); av_freep(&p_schro_params->format); return 0; }