Lines Matching refs:audio_dec_ctx
39 static AVCodecContext *video_dec_ctx = NULL, *audio_dec_ctx;
95 av_ts2timestr(frame->pts, &audio_dec_ctx->time_base));
280 if (open_codec_context(&audio_stream_idx, &audio_dec_ctx, fmt_ctx, AVMEDIA_TYPE_AUDIO) >= 0) {
325 ret = decode_packet(audio_dec_ctx, pkt);
334 if (audio_dec_ctx)
335 decode_packet(audio_dec_ctx, NULL);
347 enum AVSampleFormat sfmt = audio_dec_ctx->sample_fmt;
348 int n_channels = audio_dec_ctx->ch_layout.nb_channels;
365 fmt, n_channels, audio_dec_ctx->sample_rate,
371 avcodec_free_context(&audio_dec_ctx);