projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add asset max wxh and max texture tests, fix position clamp for single frame assets
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
cinelerra
/
vmodule.C
diff --git
a/cinelerra-5.1/cinelerra/vmodule.C
b/cinelerra-5.1/cinelerra/vmodule.C
index 5644419070e68b754238378fca4c86b281287fa1..f3cc19c6874dc8f92a64988295f480c7ebc6ff98 100644
(file)
--- a/
cinelerra-5.1/cinelerra/vmodule.C
+++ b/
cinelerra-5.1/cinelerra/vmodule.C
@@
-250,6
+250,7
@@
int VModule::import_frame(VFrame *output, VEdit *current_edit,
max_position = Units::to_int64(nested_edl->tracks->total_length() *
frame_rate - 1);
}
+ if( max_position < 0 ) max_position = 0;
// if we hit the end of stream, freeze at last frame
CLAMP(position, 0, max_position);