Fixup H.264 SPS for VideoToolbox compatibility. Fixes #98

This commit is contained in:
Cameron Gutman
2018-10-12 17:59:53 -07:00
parent 44f415f94d
commit 4f84843b00
8 changed files with 140 additions and 12 deletions
+3
View File
@@ -40,6 +40,8 @@ private:
void reset();
void writeBuffer(PLENTRY entry, int& offset);
static
enum AVPixelFormat ffGetFormat(AVCodecContext* context,
const enum AVPixelFormat* pixFmts);
@@ -57,6 +59,7 @@ private:
VIDEO_STATS m_GlobalVideoStats;
int m_LastFrameNumber;
int m_StreamFps;
bool m_NeedsSpsFixup;
static const uint8_t k_H264TestFrame[];
static const uint8_t k_HEVCTestFrame[];