Lines Matching defs:avctx
87 AVCodecContext *avctx;
270 av_log(s->avctx, AV_LOG_ERROR, "Invalid scalefactor coding mode!\n");
682 av_log(s->avctx, AV_LOG_ERROR, "Invalid block flags!\n");
697 av_log(s->avctx, AV_LOG_ERROR, "Invalid band count %i!\n",
705 av_log(s->avctx, AV_LOG_ERROR, "Invalid stereo band %i!\n",
716 av_log(s->avctx, AV_LOG_ERROR, "Invalid extension band %i!\n",
725 av_log(s->avctx, AV_LOG_ERROR, "invalid block reused!\n");
790 static int atrac9_decode_frame(AVCodecContext *avctx, AVFrame *frame,
795 ATRAC9Context *s = avctx->priv_data;
799 ret = ff_get_buffer(avctx, frame, 0);
816 return avctx->block_align;
819 static void atrac9_decode_flush(AVCodecContext *avctx)
821 ATRAC9Context *s = avctx->priv_data;
833 static av_cold int atrac9_decode_close(AVCodecContext *avctx)
835 ATRAC9Context *s = avctx->priv_data;
897 static av_cold int atrac9_decode_init(AVCodecContext *avctx)
901 ATRAC9Context *s = avctx->priv_data;
904 s->avctx = avctx;
908 if (avctx->block_align <= 0) {
909 av_log(avctx, AV_LOG_ERROR, "Invalid block align\n");
913 if (avctx->extradata_size != 12) {
914 av_log(avctx, AV_LOG_ERROR, "Invalid extradata length!\n");
918 version = AV_RL32(avctx->extradata);
920 av_log(avctx, AV_LOG_ERROR, "Unsupported version (%i)!\n", version);
924 init_get_bits8(&gb, avctx->extradata + 4, avctx->extradata_size);
927 av_log(avctx, AV_LOG_ERROR, "Incorrect magic byte!\n");
932 avctx->sample_rate = at9_tab_samplerates[s->samplerate_idx];
936 av_log(avctx, AV_LOG_ERROR, "Incorrect block config!\n");
941 av_channel_layout_uninit(&avctx->ch_layout);
942 avctx->ch_layout = s->block_config->channel_layout;
943 avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
946 av_log(avctx, AV_LOG_ERROR, "Incorrect verification bit!\n");
955 av_log(avctx, AV_LOG_ERROR, "Invalid superframe index!\n");
965 s->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT);