diff --git a/veejay-current/veejay-client/src/callback.c b/veejay-current/veejay-client/src/callback.c index 25a6179d..cfc4f42a 100644 --- a/veejay-current/veejay-client/src/callback.c +++ b/veejay-current/veejay-client/src/callback.c @@ -2084,7 +2084,7 @@ void on_curve_buttonstore_clicked(GtkWidget *widget, gpointer user_data ) int end = get_nums( "curve_spinend" ); int start = get_nums( "curve_spinstart" ); - const int length = end - start; + const int length = end - start + 1; if( (length) <= 0 || id <= 0 ) diff --git a/veejay-current/veejay-server/veejay/vjkf.c b/veejay-current/veejay-server/veejay/vjkf.c index 85a35108..4ce2da4c 100644 --- a/veejay-current/veejay-server/veejay/vjkf.c +++ b/veejay-current/veejay-server/veejay/vjkf.c @@ -169,7 +169,7 @@ int keyframe_unpack( unsigned char *in, int len, int *entry, int lookup, int is in += (25); unsigned char *ptr = in; - for(i = start ; i < end; i ++ ) + for(i = start ; i <= end; i ++ ) { int value = ( ptr[0] | (ptr[1] << 8) | (ptr[2] << 16) | (ptr[3] << 24) );