Lines Matching defs:avctx
92 static av_cold int g723_1_encode_init(AVCodecContext *avctx)
94 G723_1_Context *s = avctx->priv_data;
97 if (avctx->sample_rate != 8000) {
98 av_log(avctx, AV_LOG_ERROR, "Only 8000Hz sample rate supported\n");
102 if (avctx->bit_rate == 6300) {
104 } else if (avctx->bit_rate == 5300) {
105 av_log(avctx, AV_LOG_ERROR, "Use bitrate 6300 instead of 5300.\n");
106 avpriv_report_missing_feature(avctx, "Bitrate 5300");
109 av_log(avctx, AV_LOG_ERROR, "Bitrate not supported, use 6300\n");
112 avctx->frame_size = 240;
1099 static int g723_1_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
1102 G723_1_Context *s = avctx->priv_data;
1227 ret = ff_get_encode_buffer(avctx, avpkt, frame_size[info_bits], 0);