Commit b285d78c authored by IOhannes m zmölnig's avatar IOhannes m zmölnig

filmQT4L: fix issues with the consistent 0-based frame-counting

Closes: https://github.com/umlaeute/Gem/issues/233
parent 39b7ea75
......@@ -98,6 +98,7 @@ bool filmQT4L :: open(const std::string&filename,
return false;
}
m_curFrame = -1;
m_lastFrame = -2;
// Get the number of tracks
m_numTracks = quicktime_video_tracks(m_quickfile);
......@@ -175,7 +176,7 @@ pixBlock* filmQT4L :: getFrame()
film::errCode filmQT4L :: changeImage(int imgNum, int trackNum)
{
if(imgNum>m_numFrames || imgNum<0) {
if(imgNum>=m_numFrames || imgNum<0) {
return film::FAILURE;
}
if (imgNum>=0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment