Commit e530ae79 authored by Albert Gräf's avatar Albert Gräf
Browse files

Revert rev. ddcfc435 and 307be698 to fix a regression in the QT4L plugin (fixes #233).

parent 01b1861d
Pipeline #1621 canceled with stages
...@@ -102,7 +102,7 @@ bool filmQT4L :: open(const std::string&filename, ...@@ -102,7 +102,7 @@ bool filmQT4L :: open(const std::string&filename,
// Get the number of tracks // Get the number of tracks
m_numTracks = quicktime_video_tracks(m_quickfile); m_numTracks = quicktime_video_tracks(m_quickfile);
// Get the length of the movie (on track current track) // Get the length of the movie (on track current track)
m_numFrames = quicktime_video_length(m_quickfile, m_curTrack); m_numFrames = quicktime_video_length(m_quickfile, m_curTrack) - 1;
// Get the frame-rate // Get the frame-rate
m_fps = quicktime_frame_rate(m_quickfile, m_curTrack); m_fps = quicktime_frame_rate(m_quickfile, m_curTrack);
// Get the video dimensions // Get the video dimensions
...@@ -178,10 +178,10 @@ film::errCode filmQT4L :: changeImage(int imgNum, int trackNum) ...@@ -178,10 +178,10 @@ film::errCode filmQT4L :: changeImage(int imgNum, int trackNum)
if(imgNum>m_numFrames || imgNum<0) { if(imgNum>m_numFrames || imgNum<0) {
return film::FAILURE; return film::FAILURE;
} }
if (imgNum>=0) { if (imgNum>0) {
m_curFrame=imgNum; m_curFrame=imgNum;
} }
if(trackNum>=0) { if(trackNum>0) {
m_curTrack=trackNum; m_curTrack=trackNum;
} }
......
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