implemented preliminary pre-cacher for audio

FFmpegDecoder now implements an "indexer" for audio, which actually just
extracts the raw PCM audio from an audio codec and saves it to disk
This commit is contained in:
itsmattkc
2019-10-24 16:36:26 +11:00
parent 52f4c59bec
commit 2fdf78df4a
14 changed files with 370 additions and 36 deletions
+3
View File
@@ -30,6 +30,7 @@ extern "C" {
#include <QVector>
#include "decoder/decoder.h"
#include "audio/sampleformat.h"
/**
* @brief A Decoder derivative that wraps FFmpeg functions as on Olive decoder
@@ -130,6 +131,8 @@ private:
*/
AVPixelFormat GetCompatiblePixelFormat(const AVPixelFormat& pix_fmt);
olive::SampleFormat GetNativeSampleRate(const AVSampleFormat& smp_fmt);
AVFormatContext* fmt_ctx_;
AVCodecContext* codec_ctx_;
AVStream* avstream_;