- core::monitor::subject monitor_subject_;
- input& input_;
- int index_;
- int actual_index_;
- const core::video_format_desc format_desc_;
- const spl::shared_ptr<AVCodecContext> codec_context_ = open_codec(input_.context(), AVMEDIA_TYPE_AUDIO, actual_index_, false);
-
- std::shared_ptr<SwrContext> swr_ {
- swr_alloc_set_opts(
- nullptr,
- create_channel_layout_bitmask(codec_context_->channels),//get_ffmpeg_channel_layout(codec_context_.get()),
- AV_SAMPLE_FMT_S32,
- format_desc_.audio_sample_rate,
- create_channel_layout_bitmask(codec_context_->channels),//get_ffmpeg_channel_layout(codec_context_.get()),
- codec_context_->sample_fmt,
- codec_context_->sample_rate,
- 0,
- nullptr),
- [](SwrContext* p){swr_free(&p); }
- };
-
- cache_aligned_vector<uint8_t> buffer_;
-
- std::shared_ptr<AVPacket> current_packet_;