webm2pes: Add a WebM parser init method.

Pre-refactor a little to avoid some code duplication.

Change-Id: I8ce733be0c9e07544fc25bd9890d68fb14a7e84d
This commit is contained in:
Tom Finegan
2015-12-16 16:05:10 -08:00
parent aa3593ec36
commit d6db1e1960
2 changed files with 57 additions and 49 deletions

View File

@@ -184,6 +184,7 @@ class Webm2Pes {
};
typedef std::unique_ptr<FILE, FILEDeleter> FilePtr;
bool InitWebmParser();
bool WritePesPacket(const mkvparser::Block::Frame& vpx_frame,
double nanosecond_pts);