Fixup H.264 SPS for VideoToolbox compatibility. Fixes #98
This commit is contained in:
parent
44f415f94d
commit
4f84843b00
8 changed files with 140 additions and 12 deletions
|
|
@ -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[];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue