Lines Matching defs:avctx
89 static int eightsvx_decode_frame(AVCodecContext *avctx, AVFrame *frame,
92 EightSvxContext *esc = avctx->priv_data;
93 int channels = avctx->ch_layout.nb_channels;
103 av_log(avctx, AV_LOG_WARNING, "Packet with odd size, ignoring last byte\n");
106 av_log(avctx, AV_LOG_ERROR, "packet size is too small\n");
129 av_log(avctx, AV_LOG_ERROR, "unexpected empty packet\n");
142 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
154 return ((avctx->frame_number == 0) * hdr_size + buf_size) * channels;
157 static av_cold int eightsvx_decode_init(AVCodecContext *avctx)
159 EightSvxContext *esc = avctx->priv_data;
161 if (avctx->ch_layout.nb_channels < 1 || avctx->ch_layout.nb_channels > 2) {
162 av_log(avctx, AV_LOG_ERROR, "8SVX does not support more than 2 channels\n");
166 switch (avctx->codec->id) {
172 avctx->sample_fmt = AV_SAMPLE_FMT_U8P;
177 static av_cold int eightsvx_decode_close(AVCodecContext *avctx)
179 EightSvxContext *esc = avctx->priv_data;