#192 Dissolve doesn't check for unacceptably large overlap

v2.5x
closed-fixed
Filters (75)
5
2008-06-04
2008-06-03
gzarkadas
No

The following script:

c1 = BlankClip(length=60, color=color_white)
c2 = BlankClip(length=60, color=color_black)
Dissolve(c1, c2, c1, c2, 80)

returns a clip with one frame at frame number -1 (AvsP). Setting larger values for overlap returns accordingly larger negative numbers. AvsP hangs soon afterwards (after a few normal editing tasks). Virtualdub shows a large (unsinged) frame number and doesn't even display the frame.

Possible reason: the code in Dissolve does not check to see if the resulting clip has > 0 frames after the subtraction of overlap.

Actually IMO it should check if overlap is greater than the framecount of the smallest of the two clips; else the interpolation does not make much sense to me: we pretend that there are frames, but they actually do not exist.

Discussion

  • Ian Brabham

    Ian Brabham - 2008-06-04
    • assigned_to: nobody --> ianb1957
    • status: open --> closed-fixed
     
  • Ian Brabham

    Ian Brabham - 2008-06-04

    Logged In: YES
    user_id=673887
    Originator: NO

    Thanks for the heads up.

    The above now returns a 60 frame clip, with the dissolve starting (80-60)/80 into the dissolve.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks