Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Albert Gräf
Gem
Commits
89ff9af6
Commit
89ff9af6
authored
Aug 03, 2019
by
Albert Gräf
Browse files
Revert rev.
ddcfc435
and
307be698
to fix a regression in the QT4L plugin (fixes #233).
parent
1ab32e47
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/filmQT4L/filmQT4L.cpp
View file @
89ff9af6
...
...
@@ -103,7 +103,7 @@ bool filmQT4L :: open(const std::string&filename,
// Get the number of tracks
m_numTracks
=
quicktime_video_tracks
(
m_quickfile
);
// 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
m_fps
=
quicktime_frame_rate
(
m_quickfile
,
m_curTrack
);
// Get the video dimensions
...
...
@@ -176,10 +176,10 @@ pixBlock* filmQT4L :: getFrame()
film
::
errCode
filmQT4L
::
changeImage
(
int
imgNum
,
int
trackNum
)
{
if
(
trackNum
>=
0
&&
trackNum
<
m_numTracks
)
{
if
(
m_cur
T
ra
ck
!=
trackNum
)
{
m_numFrames
=
quicktime_video_length
(
m_quickfile
,
trackNum
);
}
if
(
imgNum
>
0
)
{
m_cur
F
ra
me
=
imgNum
;
}
if
(
trackNum
>
0
)
{
m_curTrack
=
trackNum
;
}
if
(
imgNum
>=
m_numFrames
||
imgNum
<
0
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment