Skip to content
Snippets Groups Projects
Commit eed3974d authored by Sergey Sharybin's avatar Sergey Sharybin
Browse files

Fix T39545: "Track selected markers", does not stop at end of video

Issue was cauzed by some weird clamping of current frame. Not sure
why it was here at the first point -- it's from the day0 of movie
clip datablock.
parent def5999f
No related branches found
No related tags found
No related merge requests found
...@@ -280,17 +280,8 @@ static ImBuf *movieclip_load_movie_file(MovieClip *clip, MovieClipUser *user, in ...@@ -280,17 +280,8 @@ static ImBuf *movieclip_load_movie_file(MovieClip *clip, MovieClipUser *user, in
movieclip_open_anim_file(clip); movieclip_open_anim_file(clip);
if (clip->anim) { if (clip->anim) {
int dur; int dur = IMB_anim_get_duration(clip->anim, tc);
int fra; int fra = framenr - clip->start_frame + clip->frame_offset;
dur = IMB_anim_get_duration(clip->anim, tc);
fra = framenr - clip->start_frame + clip->frame_offset;
if (fra < 0)
fra = 0;
if (fra > (dur - 1))
fra = dur - 1;
ibuf = IMB_anim_absolute(clip->anim, fra, tc, proxy); ibuf = IMB_anim_absolute(clip->anim, fra, tc, proxy);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment