Lines Matching defs:avctx
2047 static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
2054 ret = avcodec_send_packet(avctx, pkt);
2061 ret = avcodec_receive_frame(avctx, frame);
2092 AVCodecContext *avctx = ist->dec_ctx;
2097 ret = decode(avctx, decoded_frame, got_output, pkt);
2102 if (ret >= 0 && avctx->sample_rate <= 0) {
2103 av_log(avctx, AV_LOG_ERROR, "Sample rate %d invalid\n", avctx->sample_rate);
2119 avctx->sample_rate;
2121 avctx->sample_rate;
2139 (AVRational){1, avctx->sample_rate}, decoded_frame->nb_samples, &ist->filter_in_rescale_delta_last,
2140 (AVRational){1, avctx->sample_rate});
2868 AVCodecContext *avctx)
2904 t = av_rescale_q(t, AV_TIME_BASE_Q, avctx->time_base);
2910 avctx->time_base) + t;
2917 pts[index++] = av_rescale_q(t, AV_TIME_BASE_Q, avctx->time_base);
3832 AVCodecContext *avctx;
3842 avctx = ist->dec_ctx;
3847 if (avctx->codec_type == AVMEDIA_TYPE_AUDIO && ist->nb_samples)
3853 avctx = ist->dec_ctx;
3856 if (avctx->codec_type == AVMEDIA_TYPE_AUDIO && ist->nb_samples) {
3857 AVRational sample_rate = {1, avctx->sample_rate};
3914 AVCodecContext *avctx;
3917 avctx = ist->dec_ctx;
3923 avcodec_flush_buffers(avctx);