projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
additional patchgui height icons, perspective test for zero area, es.po update
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
plugins
/
perspective
/
perspective.C
diff --git
a/cinelerra-5.1/plugins/perspective/perspective.C
b/cinelerra-5.1/plugins/perspective/perspective.C
index 6ad79e5f89f5ea583a1a7a651dd30ba8ee07a858..3bfa66fe7f13e7164fa7d2c53b725082074b41d1 100644
(file)
--- a/
cinelerra-5.1/plugins/perspective/perspective.C
+++ b/
cinelerra-5.1/plugins/perspective/perspective.C
@@
-810,6
+810,12
@@
int PerspectiveMain::process_buffer(VFrame *frame,
EQUIV(config.x3, 100) && EQUIV(config.y3, 100) &&
EQUIV(config.x4, 0) && EQUIV(config.y4, 100) )
return 1;
EQUIV(config.x3, 100) && EQUIV(config.y3, 100) &&
EQUIV(config.x4, 0) && EQUIV(config.y4, 100) )
return 1;
+ if( config.mode == AffineEngine::PERSPECTIVE &&
+ ( (EQUIV(config.x1, config.x2) && EQUIV(config.x3, config.x4)) ||
+ (EQUIV(config.y1, config.y3) && EQUIV(config.y2, config.y4)) ) ) {
+ frame->clear_frame();
+ return 0;
+ }
if( !engine ) {
int cpus = get_project_smp() + 1;
if( !engine ) {
int cpus = get_project_smp() + 1;