You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Added a new DummyReader, which can be given any framerate, samplerate, width, height, etc... and used in unit tests, such as the FrameMap unit tests.
This commit is contained in:
@@ -86,8 +86,11 @@ tr1::shared_ptr<Frame> ImageReader::GetFrame(int requested_frame) throw(ReaderCl
|
||||
throw ReaderClosed("The ImageReader is closed. Call Open() before calling this method.", path);
|
||||
|
||||
if (image_frame)
|
||||
{
|
||||
// Always return same frame (regardless of which frame number was requested)
|
||||
image_frame->number = requested_frame;
|
||||
return image_frame;
|
||||
}
|
||||
else
|
||||
// no frame loaded
|
||||
throw InvalidFile("No frame could be created from this type of file.", path);
|
||||
|
||||
Reference in New Issue
Block a user