• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:avctx

56 static int get_stream_info(AVCodecContext *avctx)
58 FDKAACDecContext *s = avctx->priv_data;
65 av_log(avctx, AV_LOG_ERROR, "Unable to get stream info\n");
70 av_log(avctx, AV_LOG_ERROR, "Stream info not initialized\n");
73 avctx->sample_rate = info->sampleRate;
74 avctx->frame_size = info->frameSize;
79 av_log(avctx, AV_LOG_WARNING, "unknown channel type\n");
84 av_log(avctx, AV_LOG_DEBUG,
107 av_log(avctx, AV_LOG_WARNING,
117 av_log(avctx, AV_LOG_WARNING,
135 av_log(avctx, AV_LOG_WARNING,
146 av_log(avctx, AV_LOG_WARNING,
154 av_log(avctx, AV_LOG_WARNING, "unsupported channel configuration\n");
158 avctx->channel_layout = 0;
160 avctx->channel_layout = ch_layout;
162 avctx->channels = info->numChannels;
167 static av_cold int fdk_aac_decode_close(AVCodecContext *avctx)
169 FDKAACDecContext *s = avctx->priv_data;
177 static av_cold int fdk_aac_decode_init(AVCodecContext *avctx)
179 FDKAACDecContext *s = avctx->priv_data;
182 s->handle = aacDecoder_Open(avctx->extradata_size ? TT_MP4_RAW : TT_MP4_ADTS, 1);
184 av_log(avctx, AV_LOG_ERROR, "Error opening decoder\n");
188 if (avctx->extradata_size) {
189 if ((err = aacDecoder_ConfigRaw(s->handle, &avctx->extradata,
190 &avctx->extradata_size)) != AAC_DEC_OK) {
191 av_log(avctx, AV_LOG_ERROR, "Unable to set extradata\n");
198 av_log(avctx, AV_LOG_ERROR, "Unable to set error concealment method\n");
202 avctx->sample_fmt = AV_SAMPLE_FMT_S16;
207 static int fdk_aac_decode_frame(AVCodecContext *avctx, void *data,
210 FDKAACDecContext *s = avctx->priv_data;
220 av_log(avctx, AV_LOG_ERROR, "aacDecoder_Fill() failed: %x\n", err);
225 frame->nb_samples = avctx->frame_size;
226 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
229 buf_size = avctx->channels * frame->nb_samples *
230 av_get_bytes_per_sample(avctx->sample_fmt);
244 av_log(avctx, AV_LOG_ERROR,
251 if ((ret = get_stream_info(avctx)) < 0)
254 frame->nb_samples = avctx->frame_size;
258 frame->nb_samples = avctx->frame_size;
259 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
262 avctx->channels * avctx->frame_size *
263 av_get_bytes_per_sample(avctx->sample_fmt));
274 static av_cold void fdk_aac_decode_flush(AVCodecContext *avctx)
276 FDKAACDecContext *s = avctx->priv_data;
284 av_log(avctx, AV_LOG_WARNING, "failed to clear buffer when flushing\n");