added support for returning audio in the FFmpegDecoder

FFmpeg decoder now indexes and returns audio as expected
This commit is contained in:
itsmattkc
2019-11-15 13:53:58 +09:00
parent 40b3879440
commit 336b3a8e05
5 changed files with 228 additions and 142 deletions
+3 -5
View File
@@ -106,7 +106,7 @@ private:
QString GetIndexFilename();
/**
* @brief Used internally to load a frame index into frame_index_ (video only)
* @brief Used internally to load a frame index into frame_index_
*
* @return
*
@@ -125,13 +125,11 @@ private:
void Seek(int64_t timestamp);
/**
* @brief Returns an AVPixelFormat that can be
* @param pix_fmt
* @return
* @brief Returns an AVPixelFormat that can be used in Olive and causes minimal data loss
*/
AVPixelFormat GetCompatiblePixelFormat(const AVPixelFormat& pix_fmt);
olive::SampleFormat GetNativeSampleRate(const AVSampleFormat& smp_fmt);
SampleFormat GetNativeSampleRate(const AVSampleFormat& smp_fmt);
AVFormatContext* fmt_ctx_;
AVCodecContext* codec_ctx_;