Lines Matching defs:avctx
60 ff_tlog(s->avctx, "%s[%d]:\n", name, n);
63 ff_tlog(s->avctx, "%4d: ", i);
64 ff_tlog(s->avctx, " %8.*f", prec, tab[i]);
66 ff_tlog(s->avctx, "\n");
69 ff_tlog(s->avctx, "\n");
73 static av_cold int wma_decode_init(AVCodecContext *avctx)
75 WMACodecContext *s = avctx->priv_data;
79 if (!avctx->block_align) {
80 av_log(avctx, AV_LOG_ERROR, "block_align is not set\n");
84 s->avctx = avctx;
88 extradata = avctx->extradata;
89 if (avctx->codec->id == AV_CODEC_ID_WMAV1 && avctx->extradata_size >= 4)
91 else if (avctx->codec->id == AV_CODEC_ID_WMAV2 && avctx->extradata_size >= 6)
98 if (avctx->codec->id == AV_CODEC_ID_WMAV2 && avctx->extradata_size >= 8){
100 av_log(avctx, AV_LOG_WARNING, "Disabling use_variable_block_len, if this fails contact the ffmpeg developers and send us the file\n");
108 if ((ret = ff_wma_init(avctx, flags2)) < 0)
124 -18, 0, avctx);
139 avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
141 avctx->internal->skip_samples = s->frame_len * 2;
367 av_log(s->avctx, AV_LOG_ERROR, "Exponent out of range: %d\n",
445 int channels = s->avctx->ch_layout.nb_channels;
453 ff_tlog(s->avctx, "***decode_block: %d:%d\n",
465 av_log(s->avctx, AV_LOG_ERROR,
473 av_log(s->avctx, AV_LOG_ERROR,
486 av_log(s->avctx, AV_LOG_ERROR,
500 av_log(s->avctx, AV_LOG_ERROR, "block_len_bits not initialized to a valid value\n");
507 av_log(s->avctx, AV_LOG_ERROR, "frame_len overflow\n");
532 av_log(s->avctx, AV_LOG_ERROR, "total_gain overread\n");
616 ret = ff_wma_run_level_decode(s->avctx, &s->gb, &s->coef_vlc[tindex],
677 ff_tlog(s->avctx, "%d: power=%f (%d)\n", j, exp_power[j], n);
750 ff_tlog(s->avctx, "rare ms-stereo case happened\n");
791 ff_tlog(s->avctx, "***decode_frame: %d size=%d\n",
806 for (ch = 0; ch < s->avctx->ch_layout.nb_channels; ch++) {
823 static int wma_decode_superframe(AVCodecContext *avctx, AVFrame *frame,
828 WMACodecContext *s = avctx->priv_data;
834 ff_tlog(avctx, "***decode_superframe:\n");
841 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
844 for (i = 0; i < s->avctx->ch_layout.nb_channels; i++)
853 if (buf_size < avctx->block_align) {
854 av_log(avctx, AV_LOG_ERROR,
856 buf_size, avctx->block_align);
859 if (avctx->block_align)
860 buf_size = avctx->block_align;
870 av_log(avctx, is_error ? AV_LOG_ERROR : AV_LOG_WARNING,
898 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
906 av_log(avctx, AV_LOG_ERROR,
964 av_log(s->avctx, AV_LOG_ERROR, "len %d invalid\n", len);
976 ff_dlog(s->avctx, "%d %d %d %d eaten:%d\n",
978 avctx->block_align);
990 static av_cold void flush(AVCodecContext *avctx)
992 WMACodecContext *s = avctx->priv_data;
998 avctx->internal->skip_samples = s->frame_len * 2;