Lines Matching refs:avctx
44 static av_cold int ws_snd_decode_init(AVCodecContext *avctx)
46 WSSndContext *s = avctx->priv_data;
48 if (avctx->channels != 1) {
49 av_log_ask_for_sample(avctx, "unsupported number of channels\n");
53 avctx->sample_fmt = AV_SAMPLE_FMT_U8;
56 avctx->coded_frame = &s->frame;
61 static int ws_snd_decode_frame(AVCodecContext *avctx, void *data,
64 WSSndContext *s = avctx->priv_data;
77 av_log(avctx, AV_LOG_ERROR, "packet is too small\n");
86 av_log(avctx, AV_LOG_ERROR, "Frame data is larger than input buffer\n");
92 if ((ret = avctx->get_buffer(avctx, &s->frame)) < 0) {
93 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");