]> git.sesse.net Git - nageru/blobdiff - h264encode.h
Set duration for all video frames.
[nageru] / h264encode.h
index 527074e297bbb759506dbe18f028bd994365c7d5..aeeabb8c26c00212cd668459e1dc1597336a120b 100644 (file)
@@ -50,7 +50,7 @@ public:
 
        void add_audio(int64_t pts, std::vector<float> audio);
        bool begin_frame(GLuint *y_tex, GLuint *cbcr_tex);
-       RefCountedGLsync end_frame(int64_t pts, const std::vector<RefCountedFrame> &input_frames);
+       RefCountedGLsync end_frame(int64_t pts, int64_t duration, const std::vector<RefCountedFrame> &input_frames);
        void shutdown();  // Blocking.
 
        // You can only have one going at the same time.