]> git.sesse.net Git - casparcg/blobdiff - core/producer/framerate/framerate_producer.h
[ffmpeg] Ported 2.0.7 ffmpeg producer to 2.1.0 while still keeping the usage of the...
[casparcg] / core / producer / framerate / framerate_producer.h
index f0995310d1fa97afd2da306b724144927faee59d..f742e484cccad27054c79c97d58043719775e006 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <string>
 #include <vector>
+#include <functional>
 
 #include <boost/rational.hpp>
 
@@ -38,7 +39,7 @@ void describe_framerate_producer(help_sink& sink);
 
 spl::shared_ptr<frame_producer> create_framerate_producer(
                spl::shared_ptr<frame_producer> source,
-               boost::rational<int> source_framerate,
+               std::function<boost::rational<int> ()> get_source_framerate, // Will be called after first receive() on the source
                boost::rational<int> destination_framerate,
                field_mode destination_fieldmode,
                std::vector<int> destination_audio_cadence);