Lines Matching defs:avctx
37 static av_cold int cng_encode_close(AVCodecContext *avctx)
39 CNGContext *p = avctx->priv_data;
46 static av_cold int cng_encode_init(AVCodecContext *avctx)
48 CNGContext *p = avctx->priv_data;
51 avctx->frame_size = 640;
53 if ((ret = ff_lpc_init(&p->lpc, avctx->frame_size, p->order, FF_LPC_TYPE_LEVINSON)) < 0)
55 p->samples32 = av_malloc_array(avctx->frame_size, sizeof(*p->samples32));
63 static int cng_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
66 CNGContext *p = avctx->priv_data;
72 if ((ret = ff_get_encode_buffer(avctx, avpkt, 1 + p->order, 0))) {
73 av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");