additional Andrew provided Termux mods +
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / bccmodels.C
index 13df1c31ad11ee0ab7c7b5de7177dc45520a59bb..38c2c4b05d80664991cc93731d6329a9b7fa29ee 100644 (file)
@@ -183,7 +183,7 @@ int BC_CModels::calculate_datasize(int w, int h, int bytes_per_line, int color_m
        }
        if( bytes_per_line < 0 )
                bytes_per_line = w * calculate_pixelsize(color_model);
-       return h * bytes_per_line + 4;
+       return h * bytes_per_line + BC_COLOR_ALIGN;
 }
 
 int BC_CModels::bc_to_x(int color_model)