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:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user