static av_cold int libshine_encode_close(AVCodecContext *avctx) { SHINEContext *s = avctx->priv_data; ff_af_queue_close(&s->afq); shine_close(s->shine); return 0; }
static int aac_encode_close(AVCodecContext *avctx) { AACContext *s = avctx->priv_data; if (s->handle) aacEncClose(&s->handle); av_freep(&avctx->extradata); ff_af_queue_close(&s->afq); return 0; }
static av_cold int Faac_encode_close(AVCodecContext *avctx) { FaacAudioContext *s = avctx->priv_data; av_freep(&avctx->extradata); ff_af_queue_close(&s->afq); if (s->faac_handle) faacEncClose(s->faac_handle); return 0; }
static av_cold int aac_encode_end(AVCodecContext *avctx) { AACEncContext *s = avctx->priv_data; ff_mdct_end(&s->mdct1024); ff_mdct_end(&s->mdct128); ff_psy_end(&s->psy); if (s->psypp) ff_psy_preprocess_end(s->psypp); av_freep(&s->buffer.samples); av_freep(&s->cpe); ff_af_queue_close(&s->afq); return 0; }
static int aac_encode_close(AVCodecContext *avctx) { AACContext *s = avctx->priv_data; if (s->handle) aacEncClose(&s->handle); #if FF_API_OLD_ENCODE_AUDIO av_freep(&avctx->coded_frame); #endif av_freep(&avctx->extradata); ff_af_queue_close(&s->afq); return 0; }
static av_cold int Faac_encode_close(AVCodecContext *avctx) { FaacAudioContext *s = avctx->priv_data; #if FF_API_OLD_ENCODE_AUDIO av_freep(&avctx->coded_frame); #endif av_freep(&avctx->extradata); ff_af_queue_close(&s->afq); if (s->faac_handle) faacEncClose(s->faac_handle); return 0; }
static av_cold int aac_encode_end(AVCodecContext *avctx) { AACEncContext *s = avctx->priv_data; av_log(avctx, AV_LOG_INFO, "Qavg: %.3f\n", s->lambda_sum / s->lambda_count); ff_mdct_end(&s->mdct1024); ff_mdct_end(&s->mdct128); ff_psy_end(&s->psy); ff_lpc_end(&s->lpc); if (s->psypp) ff_psy_preprocess_end(s->psypp); av_freep(&s->buffer.samples); av_freep(&s->cpe); av_freep(&s->fdsp); ff_af_queue_close(&s->afq); return 0; }