• 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

106 static av_cold int decode_close(AVCodecContext *avctx)
108 RALFContext *ctx = avctx->priv_data;
127 static av_cold int decode_init(AVCodecContext *avctx)
129 RALFContext *ctx = avctx->priv_data;
133 if (avctx->extradata_size < 24 || memcmp(avctx->extradata, "LSD:", 4)) {
134 av_log(avctx, AV_LOG_ERROR, "Extradata is not groovy, dude\n");
138 ctx->version = AV_RB16(avctx->extradata + 4);
140 avpriv_request_sample(avctx, "Unknown version %X", ctx->version);
144 avctx->channels = AV_RB16(avctx->extradata + 8);
145 avctx->sample_rate = AV_RB32(avctx->extradata + 12);
146 if (avctx->channels < 1 || avctx->channels > 2
147 || avctx->sample_rate < 8000 || avctx->sample_rate > 96000) {
148 av_log(avctx, AV_LOG_ERROR, "Invalid coding parameters %d Hz %d ch\n",
149 avctx->sample_rate, avctx->channels);
152 avctx->sample_fmt = AV_SAMPLE_FMT_S16P;
153 avctx->channel_layout = (avctx->channels == 2) ? AV_CH_LAYOUT_STEREO
156 ctx->max_frame_size = AV_RB32(avctx->extradata + 16);
158 av_log(avctx, AV_LOG_ERROR, "invalid frame size %d\n",
161 ctx->max_frame_size = FFMAX(ctx->max_frame_size, avctx->sample_rate);
167 decode_close(avctx);
172 decode_close(avctx);
178 decode_close(avctx);
187 decode_close(avctx);
196 decode_close(avctx);
204 decode_close(avctx);
338 static int decode_block(AVCodecContext *avctx, GetBitContext *gb,
341 RALFContext *ctx = avctx->priv_data;
353 av_log(avctx, AV_LOG_ERROR,
358 if (avctx->channels > 1)
368 for (ch = 0; ch < avctx->channels; ch++) {
421 static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr,
424 RALFContext *ctx = avctx->priv_data;
439 av_log(avctx, AV_LOG_ERROR, "Wrong packet's breath smells of wrong data!\n");
443 av_log(avctx, AV_LOG_ERROR, "Wrong packet tails are wrong!\n");
464 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
470 av_log(avctx, AV_LOG_ERROR, "too short packets are too short!\n");
476 av_log(avctx, AV_LOG_ERROR, "short packets are short!\n");
496 av_log(avctx, AV_LOG_ERROR, "I'm pedaling backwards\n");
500 if (decode_block(avctx, &gb, samples0 + ctx->sample_offset,
502 av_log(avctx, AV_LOG_ERROR, "Sir, I got carsick in your office. Not decoding the rest of packet.\n");
515 static void decode_flush(AVCodecContext *avctx)
517 RALFContext *ctx = avctx->priv_data;