Lines Matching defs:avctx
391 static av_cold int siren_init(AVCodecContext *avctx)
394 SirenContext *s = avctx->priv_data;
402 av_channel_layout_uninit(&avctx->ch_layout);
403 avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
404 avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
423 s->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT);
427 s->microsoft = avctx->codec->id == AV_CODEC_ID_MSNSIREN;
706 static int siren_decode(AVCodecContext *avctx, AVFrame *frame,
709 SirenContext *s = avctx->priv_data;
716 bits_per_frame = avctx->sample_rate / 50;
767 if ((avctx->err_recognition & AV_EF_CRCCHECK) && s->checksum_bits) {
792 av_log(avctx, AV_LOG_WARNING, "Invalid checksum\n");
793 if (avctx->err_recognition & AV_EF_EXPLODE)
807 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
825 static av_cold void siren_flush(AVCodecContext *avctx)
827 SirenContext *s = avctx->priv_data;
834 static av_cold int siren_close(AVCodecContext *avctx)
836 SirenContext *s = avctx->priv_data;